coolbits
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2013
12:39 PM
Roku memory / disk restrictions
Hi All,
I did some research but could not find a proper documentation or a forum post on the following things.
1. How much memory / disk space does the Roku box has (Let's imagine the least expensive box)
2. How to monitor how much such memory/ disk space is available for the app (on runtime)
Let's say an app loads images from an online source. My way of loading them is to either use roUrlTransfer object to download them to the disk and then create a roBitmap OR use the roTextureManager object. But I could not find a way to see how much memory is left for further load images. I faced a problem in my app. I.e. I loaded some images, but when I tried to run a video using roVideoPlayer (I must use the roVideoPlayer instead of roVideoScreen) but the video did not play when there are images loaded. But when I ran the roVideoPlayer without loading any image, it worked fine. Then I tried deleting the downloaded bitmaps in the drive as well as removing the created sprites. But it seemed it didn't help. I want to debug and see where I am going wrong. I know in the debug mode we can use the "bsc" to see the instances. Is there a better way?
3. How to manage memory
What are the best practices on developing fully customized Roku apps?
Thank you very much,
Chandana
I did some research but could not find a proper documentation or a forum post on the following things.
1. How much memory / disk space does the Roku box has (Let's imagine the least expensive box)
2. How to monitor how much such memory/ disk space is available for the app (on runtime)
Let's say an app loads images from an online source. My way of loading them is to either use roUrlTransfer object to download them to the disk and then create a roBitmap OR use the roTextureManager object. But I could not find a way to see how much memory is left for further load images. I faced a problem in my app. I.e. I loaded some images, but when I tried to run a video using roVideoPlayer (I must use the roVideoPlayer instead of roVideoScreen) but the video did not play when there are images loaded. But when I ran the roVideoPlayer without loading any image, it worked fine. Then I tried deleting the downloaded bitmaps in the drive as well as removing the created sprites. But it seemed it didn't help. I want to debug and see where I am going wrong. I know in the debug mode we can use the "bsc" to see the instances. Is there a better way?
3. How to manage memory
What are the best practices on developing fully customized Roku apps?
Thank you very much,
Chandana
6 REPLIES 6
theSmaw
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2013
01:22 AM
Re: Roku memory / disk restrictions
1/2)
3) Make sure to fully dispose (set to Invalid) everything that you no longer need. Better to new-up new instances of objects than keep them in memory.
3) Make sure to fully dispose (set to Invalid) everything that you no longer need. Better to new-up new instances of objects than keep them in memory.
coolbits
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2013
06:35 AM
Re: Roku memory / disk restrictions
"theSmaw" wrote:
1/2)
telnet your.box.ip 8080
> r2d2_bitmaps
3) Make sure to fully dispose (set to Invalid) everything that you no longer need. Better to new-up new instances of objects than keep them in memory.
Thank you! This helped. I never knew Roku box had port 8080 open for such debugging. Btw, can you please tell me(or provide a link which describes) what are the other commands in that interface?
Thanks again.
Chandana

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2013
01:17 PM
Re: Roku memory / disk restrictions
This is not public information and is only available under NDA.
- Joel
- Joel
coolbits
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2014
11:50 PM
Re: Roku memory / disk restrictions
Hi RokuJoel,
How can we obtain these information? I think they are pretty useful for hardcore Roku developers.
Thanks,
Chandana
How can we obtain these information? I think they are pretty useful for hardcore Roku developers.
Thanks,
Chandana

thetick
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2014
11:14 AM
Re: Roku memory / disk restrictions
As far as the memory for the devices: See http://en.wikipedia.org/wiki/Roku
Sign up for SDK and you'll get access to the SDk documentation. http://owner.roku.com/Developer
Not sure if that will have the info you are requesting but it's a start and has good documentation on the debug environment.
Sign up for SDK and you'll get access to the SDk documentation. http://owner.roku.com/Developer
Not sure if that will have the info you are requesting but it's a start and has good documentation on the debug environment.
TheTick
Roku 3 for Pokémon TV / YouTube / Animal Planet GO / HBO MAX. Chromecast for most other media because Roku Mirroring sucks , how many clicks in Wndows 10 (about a dozen) to Miracast on Roku vs 2 with Chromecast.
Verizon FIOS TV and Internet Service
Roku 3 for Pokémon TV / YouTube / Animal Planet GO / HBO MAX. Chromecast for most other media because Roku Mirroring sucks , how many clicks in Wndows 10 (about a dozen) to Miracast on Roku vs 2 with Chromecast.
Verizon FIOS TV and Internet Service
coolbits
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2014
01:00 PM
Re: Roku memory / disk restrictions
Thank you all for the help. 🙂