Hi.
My question is: Is there a way to overclock the cpu by specifying a set frequency, to run at, when opening a 3d application?
For example: The cpu is running by default at 480/600 (on any min/max like governor). When a 3d app is started the max value should scale up to 787 and then revert back to the default of 600 when the app is stopped/unfocused.
I checked out the profile creation feature of some cpu overclocking apps but didn't find any to provide this kind of functionality.
I don't think you can because setCPU doesn't have that option from what i saw.
Play with the governors, see which one fits your needs. Some of them won't go to 787 anyway if you don't force it to.
Check the governors out :
ondemand – Available in most kernels, and the default governor in most kernels. When the CPU load reaches a certain point (see “up threshold” in Advanced Settings), ondemand will rapidly scale the CPU up to meet demand, then gradually scale the CPU down when it isn't needed.
interactive – Available in newer kernels, and becoming the default scaling option in some official Android kernels. The interactive governor is functionally similar to the ondemand governor with an even greater focus on responsiveness.
conservative – Available in some kernels. It is similar to the ondemand governor, but will scale the CPU up more gradually to better fit demand. Conservative provides a less responsive experience than ondemand, but can save battery.
performance – Available in most kernels. It will keep the CPU running at the “max” set value at all times. This is a bit more efficient than simply setting “max” and “min” to the same value and using ondemand because the system will not waste resources scanning for CPU load.
powersave – Available in some kernels. It will keep the CPU running at the “min” set value at all times.
userspace – A method for controlling the CPU speed that isn't currently used by SetCPU. For best results, do not use the userspace governor.
smartass – Included in some custom kernels. The smartass governor effectively gives the phone an automatic Screen Off profile, keeping speeds at a minimum when the phone is idle.