cancel
Showing results for 
Search instead for 
Did you mean: 

Changing CPU or GPU levels at runtime

haxiomic
Protege
Some parts of our application require higher GPU levels to others, to save battery life it'd be ideal if we could drop and raise the GPU level while the app is running.

Is there a method for doing this? Or is there a plan to implement this functionality in the future?

Our app uses the native mobile SDK

Many thanks
4 REPLIES 4

Fulby
Heroic Explorer
Is the second post here the answer?

https://forums.oculus.com/developer/discussion/23675/default-cpu-gpu-throttling-level-for-unity-appl...

If not, the Unity SDK allows setting GPU/CPU level. You could have a look at that and see if you can work out what native mobile SDK call it makes.



doles
Protege
vrapi_SubmitFrame() can do this via the ovrPerformanceParms struct. Typically you don't want to change levels too frequently, and ideally you do it during loading time between levels rather than during gameplay (as changes in clocks can sometimes cause hitches in your app).

haxiomic
Protege
Ahh perfect, thanks doles! The use case is to throttle the GPU down 1 when playing long battery draining videos and throttle back up when within the main UI to keep things smooth

doles
Protege

haxiomic said:

Ahh perfect, thanks doles! The use case is to throttle the GPU down 1 when playing long battery draining videos and throttle back up when within the main UI to keep things smooth


Thats a pretty good use case!