[Q] CM12 Framerate - kernel or rom? - G3 Q&A, Help & Troubleshooting

I know that LG implemented a dynamic framerate to help save battery. I was wondering how is the global framerate of cm12 decided? is it baked into the kernel or the system? if so is there any boot script that determines this sort of thing?
If possible id want to experiment with different framerates (above 30 and below 60) and see the effect on battery. - ive already dropped my phone down to simulate 1080p and take some stress off the GPU/CPU (reduces a lot of lag)
If i could drop framerate to 45 or so it should help save some more battery.
Maybe in the future if any of this works we can create our own dynamic framerate (or maybe can be integrated into xposed framework) for saving battery etc. 30fps may be choppy at times but something like 45fps should only be noticable on really fast animations that cover a large portion of the screen.

LOGMD said:
I know that LG implemented a dynamic framerate to help save battery. I was wondering how is the global framerate of cm12 decided? is it baked into the kernel or the system? if so is there any boot script that determines this sort of thing?
If possible id want to experiment with different framerates (above 30 and below 60) and see the effect on battery. - ive already dropped my phone down to simulate 1080p and take some stress off the GPU/CPU (reduces a lot of lag)
If i could drop framerate to 45 or so it should help save some more battery.
Maybe in the future if any of this works we can create our own dynamic framerate (or maybe can be integrated into xposed framework) for saving battery etc. 30fps may be choppy at times but something like 45fps should only be noticable on really fast animations that cover a large portion of the screen.
Click to expand...
Click to collapse
This would be best posted in the Cyanogenmod 12 Official Forum Thread for LG G3 where CM12 developers frequent, since most of us here are rookies or have little to no experience at android programming

Related

[App] FPS Meter - Measure the smoothness of project butter & Games ;)

Just came across this app, was so desperate to have something similar for very long since ics.
FPS meter - play store link[App on Christmas discount sale for .99$)
This tool would be very handy in measuring how smooth a rom is. :good::good:
For gamers it would be very handy to check fps of games ... similar to fraps in pc (hope u people know fraps )
Disclaimer :
dunno if this will work with every available 2d/3d games, better read the feedback in store for reviews.
Case study:
with ll5 rom and stock kernel
* as we have project butter i can see a cap at 60 fps (vsync is there in project butter).
* while scrolling through some apps the fps fluctuates around 50 to 60 , afaik the fluctuation should not be there with project butter as it uses triple buffering along with vsync to maintain a constant 60 fps.
* enabling power saving mode in samsung roms caps the fps at 40.
wondering how much force gpu rendering will have an effect on project butter
>apps that maintain 60fps constant when scrolling
* stock touchwiz launcher
>apps that fluctuates fps in scrolling
* stock gallery
.
rest to be tested
ill add an expanded comparison of few apps if there is a difference between stock kernel and custom kernel (especially with gpu overclocked )
lets talk and share about fps in games along with fps in various apps here
Awesome share. Thanks button preseed :thumbup:
Sent from my GT-I9300
Cool idea
Sent from my GT-I9300 using xda app-developers app
Interesting I think I'm leaving this on just for the sake of knowing. You can see the fps drops causing the jerky scrolling in tapatalk. The fps drops with the load towards a bare minimum until touched.
?????? Galaxy S3 ??????
Noticed frames are maxed at 40 when power save cpu enabled.
?????? Galaxy S3 ??????
Purchased. Great app.

Boot Animation and Down Animation frames per second issue

Recently I've been trying to create some nice boot animation and down animation for my HTC One.
My problem is the both the boot and the down animation look pretty laggy.
So obviously something went wrong with the FPS.
I set the FPS at 30, and with about 1200 frames the animation should end in about 40 secs (I know it is a little long. Trying to get over myself).
But it actually took about 100 secs to finish (OMFG!!!!!!!!!)
That means the FPS actually dropped to just about 12 instead of 30.
At first I thought it was because the pictures are too big to be handled nicely by the phone .
So I did some compression to the pictures (keeping the resolution at 1920x1080 of course), telling myself there really wouldn't be that much noticeable differences on a 4.7" screen.
At last the size of most frames are about 80kb, and some frames with more black color just about 20kb, only a few relatively vibrant frames are about 150kb.
It turned out there is no difference at all, still laggy, still 100 secs!
Then I thought maybe it is because of those 1000+ frames, but theoretically, I think that is not the cause.
If it can run 100 frames at 30 fps flawlessly, why not 1000?
I thought it might be due to the relatively high resolution (though every frame had been compressed).
Finally, by deleting about 80% of the frames and setting the FPS at 10, I was able to make the animation acceptable.
So does anyone have the same problem with FPS?
Is it because of the 1920x1080 resolution that makes it hard to obtain high FPS?
Or it could be modified by changing some mysterious settings?
I find when I set my minimal cpu frequency too low the bootanimation lags. Stock 348Mhz should work and is lagless for me.
Sent from my HTC One using xda app-developers app
Tw1tchy said:
I find when I set my minimal cpu frequency too low the bootanimation lags. Stock 348Mhz should work and is lagless for me.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Can you share your boot animation file, so I can compare the exact difference
Tw1tchy said:
I find when I set my minimal cpu frequency too low the bootanimation lags. Stock 348Mhz should work and is lagless for me.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Do you use an app to set the cpu frequency?
Here is what I have learned while making these. If you keep the full resolution (1080x1920) the animation will usually always lag and be slow unless its under 50 frames. Sometimes I have found for a slightly longer animation (over 50 frames up to about 400) that you separate your frames into folders of 30 frames per folder. Also, if you take the animation and reduce it's resolution to half (540x960) it will still look acceptable and run smoother. The last thing, I know the file format .png is the suggested format to use and of better quality... But I get better results using jpegs, probably because they are compressed more.
The main thing to take away from this, every animation is different and will need something done to it a little differently than the last one you made. It's more of a "turn the knob slowly" each time and try it out. Slow, but gives you best results.
Crackanug said:
Here is what I have learned while making these. If you keep the full resolution (1080x1920) the animation will usually always lag and be slow unless its under 50 frames. Sometimes I have found for a slightly longer animation (over 50 frames up to about 400) that you separate your frames into folders of 30 frames per folder. Also, if you take the animation and reduce it's resolution to half (540x960) it will still look acceptable and run smoother. The last thing, I know the file format .png is the suggested format to use and of better quality... But I get better results using jpegs, probably because they are compressed more.
The main thing to take away from this, every animation is different and will need something done to it a little differently than the last one you made. It's more of a "turn the knob slowly" each time and try it out. Slow, but gives you best results.
Click to expand...
Click to collapse
Yeah, thanks. reducing the resolution does help improve the smoothness.
Really took me a lot of time trying to make it perfect.
batongxue said:
Yeah, thanks. reducing the resolution does help improve the smoothness.
Really took me a lot of time trying to make it perfect.
Click to expand...
Click to collapse
Great to hear! It usually is a trial and error process, a little time consuming but worth it in the end.

Laggy homescreen and gaming

The homescreen is quite noticeably not a smooth 60fps, it stutters and with the overlay enabled in developer settings, can see the framerate drops alot. Especially in freestyle layout mode. Also a lot of games stutter and don't run at a smooth framerate - for example monument valley. Does anyone else get this? Im on stock rom latest update
andy010101 said:
The homescreen is quite noticeably not a smooth 60fps, it stutters and with the overlay enabled in developer settings, can see the framerate drops alot. Especially in freestyle layout mode. Also a lot of games stutter and don't run at a smooth framerate - for example monument valley. Does anyone else get this? Im on stock rom latest update
Click to expand...
Click to collapse
This is completely dependent on your OS, applications, widgets on screen, running apps, cpu state and the speed you're using your device.. If its really congested and you're running a tonne of apps then you'll perhaps have some slow downs, if you're using a custom kernel and you've lowered the up cpu threshold then that will too have an impact, honestly I'd leave it on stock and minimise the amount of widgets (especially lives ones) you have on your desktops, anything with transparency will have an impact too.
Gaming wise, I have to say this phone is rock solid.
The only game that it couldn't run is dolphin which is a gamecube emulator, running zelda the windwaker.
But I think that's down to optimization rather that anything else.
What set up do you have? Custom rom? Stock? Kernel? Lots or not a lot of apps?
my runs smooth on games, emulators, home screens, videos, taking and recording pictures and video, everything. ive been very happy with its performance, completely stock and running custom roms on my Verizon Variant, viper is my favorite now after last few updates.
I'm also satisfied with my HTC 10 performance, runs smooth (everything stock), but I notice that some games are a bit laggy (like Realracing 3, even if I lower the resolution to FullHD in the Boost+ app).
I wonder if I would get better framerates with the CleanSlate kernel that has Adrenoboost feature, but I'm not to keen on rooting my device because then you can't install OTA updates anymore.
Im running on the stock rom straight from the box, no custom rom or everything
, every game I have tried so far runs awful, massive framerate drops with or without boost. I have compared my framerate in asphalt 8 to this video, with an fps counter, and I get much worse framerates, usually around low 20s, dropping to teens. I don't have powersaving enabled
https://www.youtube.com/watch?v=Nks2pE_U_PY
andy010101 said:
Im running on the stock rom straight from the box, no custom rom or everything
, every game I have tried so far runs awful, massive framerate drops with or without boost. I have compared my framerate in asphalt 8 to this video, with an fps counter, and I get much worse framerates, usually around low 20s, dropping to teens. I don't have powersaving enabled
Click to expand...
Click to collapse
Anything in HTC's ROM seems to cripple Adrenoboost of the GPU. While on other devices it works perfectly and is reaching up to 60 fps, it doesn't on the HTC 10. It doesn't bother me, as I'm not a heavy gamer, but if you're in need to change it, you could use a custom kernel, as e.g. CleanSlate by @tbalden.
Sent from my HTC 10 using XDA Labs
5m4r7ph0n36uru said:
Anything in HTC's ROM seems to cripple Adrenoboost of the GPU. While on other devices it works perfectly and is reaching up to 60 fps, it doesn't on the HTC 10. It doesn't bother me, as I'm not a heavy gamer, but if you're in need to change it, you could use a custom kernel, as e.g. CleanSlate by @tbalden.
Click to expand...
Click to collapse
I hope HTC fixes that with some OTA.
Anyway, would the High performance mode in the developer options help the framerate?
CroCop18 said:
I hope HTC fixes that with some OTA.
Anyway, would the High performance mode in the developer options help the framerate?
Click to expand...
Click to collapse
As I'm on Viper10, Stock, pnp thermal tweak, or Viper 10 and CleanSlate Kernel. So I can't tell if it would work. The CleanSlate kernel fixes the problem quite well, so I'll use it until HTC maybe fixed the issue as long as I'm gaming and the other config I'll use as my daily driver.
Sent from my HTC 10 using XDA Labs
Can anyone that has no custom rom test the framerate on the first map of asphalt 8 and report back?
afuller42 said:
my runs smooth on games, emulators, home screens, videos, taking and recording pictures and video, everything. ive been very happy with its performance, completely stock and running custom roms on my Verizon Variant, viper is my favorite now after last few updates.
Click to expand...
Click to collapse
Try to running windwaker on dolphin. Would love to play thar
dladz said:
Try to running windwaker on dolphin. Would love to play thar
Click to expand...
Click to collapse
I use mupenfs haven't tried it on 10 yet
andy010101 said:
The homescreen is quite noticeably not a smooth 60fps, it stutters and with the overlay enabled in developer settings, can see the framerate drops alot. Especially in freestyle layout mode. Also a lot of games stutter and don't run at a smooth framerate - for example monument valley. Does anyone else get this? Im on stock rom latest update
Click to expand...
Click to collapse
Do u use sd card
If yes which class, coz i noticed that it can slow the device
I hope htc support team improve the performance and fix the lag issues by updates.
This is an awful bug .May htc solve this in the android 7 update .
Slow SD card like someone else said.
Try it without one.
Maybe your hardware is faulty in some way.
Also try to set all clocks to a constant maximum. So you see if you have the power or not.
Maybe a fake device?

ZUK supports 4KHDR @ 60fps?

Why is it that despite of having same configuration as OnePlus3, ZUK can't play 4KHDR @60fps as smooth as OP3? Though it can, after some tweaks, but not as efficiently & smooth as OP3(unrooted). I used same Version of MXPlayer and same file for comparison.
I tried all custom kernels available (Heliox,Jaguar,Darkmoon) and Latest versions of major ROMs(RR,AEX,ViperOS). And still didn't match the playback quality of OP3.
Please tell me if there are more kernels or ROMs yet to be tried, which can bring substantial step-up in performance, or which will just Play 4KHDR @ 60fps.
Overall, the User Experience is super-smooth but
this small thing is eating my brain :crying:
d3vyarth said:
Why is it that despite of having same configuration as OnePlus3, ZUK can't play 4KHDR @60fps as smooth as OP3? Though it can, after some tweaks, but not as efficiently & smooth as OP3(unrooted). I used same Version of MXPlayer and same file for comparison.
I tried all custom kernels available (Heliox,Jaguar,Darkmoon) and Latest versions of major ROMs(RR,AEX,ViperOS). And still didn't match the playback quality of OP3.
Please tell me if there are more kernels or ROMs yet to be tried, which can bring substantial step-up in performance, or which will just Play 4KHDR @ 60fps.
Overall, the User Experience is super-smooth but
this small thing is eating my brain :crying:
Click to expand...
Click to collapse
First of all, You are comparing "THE BEST" SD820 phone with probably the 3rd or 4th best SD820 phone (antutu wise). Secondly, even on the OP3, why would you choose to play 60fps 4K videos that too HDR ones?! That's ridiculous for anyone. I'm hoping the logical explanation to why you're doing this is to kinda benchmark the phone. But even then a lot of SD653 and SD810 phones can breeze through this benchmark easily. It's even more ridiculous that you've tried almost all roms and kernel combos just for a luxury video playback.
Anyways coming to the point, I tried the Sony 4K 60fps HDR Swordsmith video on my Z2+ (AEX4.6 Official with HelioX 3.18.80) via MX with HW (not plus) decocer and the video was running smooth AF. Infact, compared to playback my friend's OP3 running OxyOS 5.0, my Z2+ had zero hiccups throughout the video while the OP3 had 2 or 3 towards the middle. The interesting thing is that I achieved these results while running CPU underclocked to 1996 & 1401. But technically speaking that shouldn't be a problem in the video playback coz HW decoder runs exclusively on the GPU. Concluding my point, don't watch ridiculously high quality videos on phone and don't change roms and kernels to achieve desired playback, just adjust and optimize them.
Incrovantilist said:
First of all, You are comparing "THE BEST" SD820 phone with probably the 3rd or 4th best SD820 phone (antutu wise). Secondly, even on the OP3, why would you choose to play 60fps 4K videos that too HDR ones?! That's ridiculous for anyone. I'm hoping the logical explanation to why you're doing this is to kinda benchmark the phone. But even then a lot of SD653 and SD810 phones can breeze through this benchmark easily. It's even more ridiculous that you've tried almost all roms and kernel combos just for a luxury video playback.
Anyways coming to the point, I tried the Sony 4K 60fps HDR Swordsmith video on my Z2+ (AEX4.6 Official with HelioX 3.18.80) via MX with HW (not plus) decocer and the video was running smooth AF. Infact, compared to playback my friend's OP3 running OxyOS 5.0, my Z2+ had zero hiccups throughout the video while the OP3 had 2 or 3 towards the middle. The interesting thing is that I achieved these results while running CPU underclocked to 1996 & 1401. But technically speaking that shouldn't be a problem in the video playback coz HW decoder runs exclusively on the GPU. Concluding my point, don't watch ridiculously high quality videos on phone and don't change roms and kernels to achieve desired playback, just adjust and optimize them.
Click to expand...
Click to collapse
My point on playing the best video quality I have, bcz ZUK can, why not. I tried LG Cymatic Jazz HDR to test the playback(details attached).
Back when I had ZUI, it could not play the video at 60 fps. But when I flashed first RR, I was surprised by the result. In MX Player Pro with HW+, it could play super smooth with absolute 0 lag.
Then came updates and further more I flashed many ROMs but never got that playback. Changing kernels didn't help. And now I've same ROM and kernel as you do, because you know.
The fact that you can play 4KHDR @ 60fps, may be bcz ur video isn't having 10 bit color depth. Please attach your video details, I wanna see. If our videos are of same quality, then I may be having some other issue.
Its strange however, you're playing 4KHDR on HW.
Also, do you have Substratum theme or Xposed modules installed? Just curious if these affect performance in any way.
d3vyarth said:
The fact that you can play 4KHDR @ 60fps, may be bcz ur video isn't having 10 bit color depth. Please attach your video details, I wanna see. If our videos are of same quality, then I may be having some other issue.
Its strange however, you're playing 4KHDR on HW.
Also, do you have Substratum theme or Xposed modules installed? Just curious if these affect performance in any way.
Click to expand...
Click to collapse
No Substratum No Xposed. And the video I tried has same video specs as yours (attached).
Incrovantilist said:
No Substratum No Xposed. And the video I tried has same video specs as yours (attached).
Click to expand...
Click to collapse
Is it possible that Xposed and Substratum are somewhere causing pain to the system?
Also, I once changed some screen values through Kernel auditor and tried to undo that. I don't know if they're default now, I'm attaching SS just tell me if they're same. I'll try uninstalling Substratum and Xposed and keep system as Lite as possible and then check.
Thanks for your attention and help
d3vyarth said:
Is it possible that Xposed and Substratum are somewhere causing pain to the system?
Also, I once changed some screen values through Kernel auditor and tried to undo that. I don't know if they're default now, I'm attaching SS just tell me if they're same. I'll try uninstalling Substratum and Xposed and keep system as Lite as possible and then check.
Thanks for your attention and help
Click to expand...
Click to collapse
Substratum can have some slowing effect on GPU due to its theme engine but that'll be possibly unnoticeable in a SD820. Xposed should be harmless (afaik with my previous phones) unless you are running GPU affecting modules. I don't use substratum because I was perfectly happy with CM theme engine and now that it's gone, I'm not so keen for a replacement. Xposed went meaningless after Lollipop & the birth of Magisk (for me atleast). And lastly about Screen values in KA, they don't have any effect on GPU unless ofcourse you're running grayscale which might actually save you some power (but might be unstable). If you want to reset the values, just uncheck apply on boot under screen settings and reboot. FYI, I ran almost all KCAL profiles I found online and "Perfection" (that's the name of the KCAL profile) for OP2 is giving the best visuals in my perspective. Try it if you want. Happy to have helped you ?✌?
Imo the zuk z2 is not as good at playback than I expected. Even 1080p60 video drop frames constantly at 2x playback speed
Also the phone dont have a hdr screen so why even try to play hdr content anyway
pipyakas said:
Imo the zuk z2 is not as good at playback than I expected. Even 1080p60 video drop frames constantly at 2x playback speed
Also the phone dont have a hdr screen so why even try to play hdr content anyway
Click to expand...
Click to collapse
Playing a 60fps video at 2x speed would mean 120fps, that's out of our screen limit. For that purpose display needs 120Hz refresh rate as in New Razer phone, or some frames will get skipped(frame drops) as you noticed.
And the reason why I wanna play that, I search of playing that thing smoothly, I've learned many things. It simply gives me satisfaction.
Incrovantilist said:
Substratum can have some slowing effect on GPU due to its theme engine but that'll be possibly unnoticeable in a SD820. Xposed should be harmless (afaik with my previous phones) unless you are running GPU affecting modules. I don't use substratum because I was perfectly happy with CM theme engine and now that it's gone, I'm not so keen for a replacement. Xposed went meaningless after Lollipop & the birth of Magisk (for me atleast). And lastly about Screen values in KA, they don't have any effect on GPU unless ofcourse you're running grayscale which might actually save you some power (but might be unstable). If you want to reset the values, just uncheck apply on boot under screen settings and reboot. FYI, I ran almost all KCAL profiles I found online and "Perfection" (that's the name of the KCAL profile) for OP2 is giving the best visuals in my perspective. Try it if you want. Happy to have helped you ?✌?
Click to expand...
Click to collapse
I removed Substratum and Xposed, even Shox audio mod, but result was same.
Though Performance as CPU Governor gives 100% results, but you said you've Under-Clocked ur CPU to 1996MHz, that did surprise me.
Which CPU & GPU governor do you use? Also which I/O Scheduler? I'm curious.
d3vyarth said:
I removed Substratum and Xposed, even Shox audio mod, but result was same.
Though Performance as CPU Governor gives 100% results, but you said you've Under-Clocked ur CPU to 1996MHz, that did surprise me.
Which CPU & GPU governor do you use? Also which I/O Scheduler? I'm curious.
Click to expand...
Click to collapse
Fiops scheduler.
CPU Governor is Interactive. (default on HelioX)
GPU Governor is Msm-adreno-tz. (default on HelioX)
Incrovantilist said:
Fiops scheduler.
CPU Governor is Interactive. (default on HelioX)
GPU Governor is Msm-adreno-tz. (default on HelioX)
Click to expand...
Click to collapse
I use same settings
I think I need to do more research on this.
Updating to Oreo smoothed everything out :fingers-crossed:

'Coolest'&'Lightest' ROM, for hard recording

Hi All.
I need to know which ROM (or rather Kernel+ROM..) has minimum system load and lightest throttling politics. Also it would be nice to see some overclocking profiles (but doubt that they will come in handy, rather the opposite).
I'm recording 4k videos in Snap Camera (HAL-1, HEVC) and want to try the highest possible bitrate (I think 100mbit).
Big thanks.
(ssry for medium english)

Categories

Resources