I have a channel that I want stop animations from happening if running on a slower device like Roku Express and keep them on a faster device like Roku Premiere. Except I'm not sure what's the best way to go about it. I wanted to filter by the amount of available ram, but I couldn't find an api that gives me available ram for the system that I could run in my code. I could filter by model name, but I would then need to keep an update list of model names, which I prefer not to do.
- How would RAM effect it? - Do you want to go by processor speed? Since all current gen Rokus are "fast" (finally!), you could list any older "slow" models and assume all newer ones will continue to be fast.
- You could implement a processor test, like this:
timer = createObject("roTimespan") FOR _ = 1 TO 1e5: END FOR time = timer.TotalMilliseconds() IF time <= 21 THEN gS = 1 ELSE gS = 2
"marcelo.cabral" wrote: In general if you use roDeviceInfo object method GetGraphicsPlatform() and check if the device returns "opengl" it will be fast.
Edit: That was true in the past, but I'm not sure about the Express devices, there are two generations of these, the first did not implemented OpenGL
Unlike the old Expresses (37xx), the new ones (39xx) use the same hardware architecture that Premiere/Ultra use, and they should be ringing as OpenGL too. They have lower storage than the premium ones but performance may be on par (i haven't tested).