merthin
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2014
04:52 PM
roScreen, Idle Time and Wait
Hi All. I have been playing with an interesting issue as of lately:
I'm working with roScreens and it seems that after 10 minutes of inactivity the usage of wait(timeout, port) takes
longer than what stated in timeout. Rendering the app unresponsive. This port is attached to a roUrlTransfer object.
I wonder if this is an issue some others have found, and if someone from the staff could elaborate in what happens
under the hood (GC, etc) when the blank screen (the screensaver mode for roScreen based apps) appears.
Also, does "wait(0, port)" is the same as doing port.GetMessage()?
thank you all in advance.
I'm working with roScreens and it seems that after 10 minutes of inactivity the usage of wait(timeout, port) takes
longer than what stated in timeout. Rendering the app unresponsive. This port is attached to a roUrlTransfer object.
I wonder if this is an issue some others have found, and if someone from the staff could elaborate in what happens
under the hood (GC, etc) when the blank screen (the screensaver mode for roScreen based apps) appears.
Also, does "wait(0, port)" is the same as doing port.GetMessage()?
thank you all in advance.
3 REPLIES 3

NewManLiving
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2014
05:54 PM
Re: roScreen, Idle Time and Wait
I find It's better to use getmessage
Your transfer calls should generally be asynchronous
On their own port. And if absolutely necessary write your
Own screensaver
Your transfer calls should generally be asynchronous
On their own port. And if absolutely necessary write your
Own screensaver
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2014
08:53 PM
Re: roScreen, Idle Time and Wait
You didn't mention what model you're testing on. There's a known issue with sleeps/waits under 10 ms on the previous gen Roku 2 XD and XS, that probably carried over to the streaming stick as well.
No. Wait(0, port) will block until it receives a message.
"merthin" wrote:
Also, does "wait(0, port)" is the same as doing port.GetMessage()?
No. Wait(0, port) will block until it receives a message.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
merthin
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2014
04:08 PM
Re: roScreen, Idle Time and Wait
Thanks all for the responses. I get around it by making all the call asyncronous.
@TheEndless I was testing in several Rokus, including the 3.
@TheEndless I was testing in several Rokus, including the 3.