[GUIDE][SCRIPTS] v5.0 ¦ How to Easily Unleash your HTC One gaming powers

Search This thread

hamdir

Recognized Contributor
Aug 13, 2008
33,281
27,139
Canada
twitter.com
HTC U12+
Samsung Galaxy S21
----------------------------------------------------------------------------

Sense 6.0 official game boost method

HTC added High Performance Mode in it's Sense 6.0 update, which is acts like an official form of game boost, now locked users can enjoy the full speed of the s600 as well

Higher Performance Mode (HPM) in Stock Sense 6 software, hidden in developer options (Screenshots)
- Go to your HTC One (M8) settings menu and scroll to the very bottom. Select "About" and open the "Software Information" menu.

- Tap on the "Build Number" several times until you get a message confirming that "you're now a developer".

- The developer options menu should now appear in your settings list. Go ahead and open it. Note that this section contains settings that should not be modified unless necessary. Doing so may make your phone behave in unexpected ways. Proceed at your own risk from now on.

- The fifth option in the list should be labeled "High Performance Mode". Enable it by marking the tick to the right. Tap again to disable the mode when it isn't required.

This will force the CPU into higher frequencies, delay throttling and prevent stalls/fps dips from any affected app (try it with Ripetide GP2)

Always remember that this boost will take a heavy tole on the battery and thermals, so remember to disable HPM when you are done gaming

----------------------------------------------------------------------------
----------------------------------------------------------------------------


The following information is for Sense 5.0 / 5.5 and more advanced performance tips

Fast version of this guide and simple solution:

For new comers, this section should be enough

Facts: Gaming on the HTC One can be negatively affected by two factors, CPU/GPU thermal throttling (down) and the inability to boost the CPU in tilt /sensor controlled games

Example: By default Asphalt 8 in tilt controls will fluctuates between smooth and laggy, with touch controls it's smooth until the GPU throttles down after 15 minutes and then it becomes laggy, with the following solution the HTC One will run this game above 30fps locked even with max graphics effects
Scripts: Prevent CPU / GPU throttling and Boost the CPU | last updated 11-12-2013

Simply use my Boost script before your start your favorite game, it will insure using the max CPU and GPU speed during your game session, once you are done gaming unBoost and the device returns to it's stock state

The only requirement is acquiring root

- Simply download my HTC One Simple Gaming Boost scripts and follow the tutorial for a one click solution

Remember to always unBoost once you are done gaming to allow the phone to cool down

I still recommend to take the time and read through the the rest of this guide, it will help you understand how the HTC One processor works and how to extract the best of it

----------------------------------------------------------------------------
----------------------------------------------------------------------------


Comprehensive HTC One gaming performance guide and multiple solutions:

The HTC One runs heavy 3D games like Modern Combat 4 in full visual quality, native 1080p resolution and remains above 30fps, equally the HTC One Adreno 320 GPU beats the iPad 4 GPU in native performance, unfortunately you will be surprised when your powerful HTC One suddenly drops smooth frame rate after some time of gameplay

This because like most Snapdragon 4 pro and 600 devices, Qualcomm throttles the CPU clocks when it hits a select temperature target, this is done to both protect the device, reduce overheating and extend battery life, unfortunately the target temperature is entirely up to the OEM and these targets vary greatly between quad core krait devices, to make matters worse certain OEMs choose to throttle the Adreno 320 GPU as well, the GPU is the most important gaming hardware in your device, currently we have abundance of CPU power but we can never have enough GPU power, this is why dropping the GPU clocks will directly drop your gaming performance, check this post on how different device builders throttle their Snapdragons

The HTC One by default throttles the CPU when it reaches 57c but it also throttles the GPU with CPU when the battery arrives at 40c (probably to safeguard the built-in battery), it drops from 400mhz to 320mhz, after 20 minutes or so of gameplay the GPU will slowdown, throttling the CPU at 57c is fine but the 40c battery GPU threshold is simply too soon, this throttling is just preservative especially since the GPU is already under clocked at 400mhz, equally this device metal shell actually acts a heatsink and gets rids of it's heat quite well

The other part of this gaming equation is CPU speed, by default the speedy quad core favors medium CPU frequencies for average jobs and will ramp up fairly well when more is needed, this is all controlled by the CPU governor, however there are certain heavy games which still fail to call full CPU speed or maintain it, particularly if a game relies on tilt or sensor controls, like Asphalt 8 or Ripetide GP 2, for such games you will need to increase the CPU aggressiveness

In conclusion, if we want to have the full gaming performance expected from our HTC One, we will have to disable GPU throttling and boost the CPU

This guide consists of three parts:

. Part I: GPU Throttling

. Part II: CPU Boost

. Part III: More performance tricks (future proofing)

----------------------------------------------------------------------------

Part I: GPU Throttling
Reminder the following tips will use the device to its potential and therefore will abuse the battery life, so try to be moderate and don't over use the device at high temps


General tips for stock non rooted users

In order to control throttling on your HTC One without root, you have little choice but to prevent your device from heating and so delay throttling, consider the following tips:

- Never play games on the charger otherwise this means instant overheat

- Covers and cases this might be the most important tip, the metalic back plate is linked to the CPU and meant as a heatsink by design, so covers especially hard covers will prevent the metal back plate from releasing heat, choose a cover which doesn't trap the heat, i found the worst is polycarbonate hard shells, meanwhile TPU did conduct heat a little better, finally the official double flip case was best for me since it's rubber, has many exposed areas and the device a little relaxed

- Thankfully the power saver mode doesn't reduce the GPU clock only the CPU is dropped to 1134mhz, so you can rely on the power saver mode to delay throttling

- Auto Sync and background activity will contribute to processor usage and heat increase, so disable auto sync and kill background processes

- Screen brightness is also be a contributor to temperatures as well, so don't go for the max

- Ambient temperature your ambient temperature will affect the temps of your device, so if you are in a hot environment throttling will come sooner than later

Unfortunately at 40c battery there isn't much we can do, when gaming your device will reach this temp sooner or later, this is why rooting and custom recovery gives us much greater control and allows us to unleash gaming on this device


Prevent CPU / GPU throttling and Boost the CPU - requires root

You can simply lock the Max CPU and GPU speeds using the gaming boost scripts described in the second part of this guide, the Boost script will set the Max CPU and GPU clock to read only preventing the system from throttling them down, once you unBoost the device returns to it's stock state

- Simply download my HTC One Simple Gaming Boost scripts and follow the tutorial for a one click solution

Remember to always unBoost once you are done gaming to allow the phone to cool down


Disable GPU throttling - requires root and custom recovery

You can also disable GPU throttling all together or configure throttling on stock kernel thanks to jerrylzy's work

- Download the Stock no gpu patch (stock_nogpu.zip) and flash it from custom recovery

This will keep the CPU throttling at 57c but disables GPU throttling, your games will no longer lag suddenly once the battery reaches 40c, you can also use the performance patch which further delays CPU throttling

Alternatively you can read through the tutorial and customize the thermald file for your liking


Custom kernels with built-in thermal control - requires root and custom recovery

If your device is Unlocked and Rooted, you can flash a custom kernel which has thermal controls, for example the ElementalX Kernel replaces the HTC thermal driver with it's own and gives us control during the kernel installation process, as explained by flar2 the kernel developer
Thermal Control
I've added kernel based thermal control and throttling. HTC's thermald is very aggressive and throttles the CPU frequency pretty much anytime you use all four processors. This kernel based implementation allow better performance while still protecting your phone from overheating. There are three levels of thermal control, which can be chosen in the installer or changed in /etc/elementalx.conf. The default option is recommended. With the run cool option, your CPU will run about 5C cooler than default while under heavy load. With the run hot option, the CPU will run about 5C warmer than default under heavy load.
There is no throttling of the GPU.

The CPU throttling kicks in when it hits certain temperatures. The first level throttles to 1728 if you're overclocking (there is no change if you are at stock freqs or lower), the second level throttles to 1350, the third level throttles to 918, the fourth to 384. It is unlikely that you will ever get to the fourth throttling level even in an extremely hot climate.

The Snapdragon 600 GPU is able to achieve 450mhz, in fact it's the stock clock on the SGS4, ElementalX OCs the GPU to 450mhz by default, the default throttling behavior for this kernel starts at 63c which is massively better than HTC's 40c and thankfully it only affects the CPU

By the way the default throttling files on the s600 SGS4 will not start to throttle before 85c and it doesn't drop the GPU either, this should give a good idea how held back the s600 is on the HTC One

I found the following configuration the most optimal when using ElementalX

- Don't go above the stock 1728mhz in AROMA (kernel installer), for gaming we really don't need more so lets not OC to keep the heat down, in fact most games will not use more than 2 to 3 CPU cores, also if you don't lock it from the installer it will never stick, you can even go with 1533mhz lock for further heat reduction

- Select your throttling temps from AROMA, thankfully this only affects the CPU and not the GPU, at default throttling it begins at 63c, with run hot it starts at 66c, run cool is 58c and run extra cool is 54c, you will have to find the sweet spot for your device, more info here

- Select GPU 450mhz from AROMA, we didn't OC the CPU in order to have thermal room for GPU OC

- You can even go with power saver mode which reduces CPU to 1134mhz, in most games you notice any drop at these CPU clocks, GPU will remain at max clock and heat will be further delayed
----------------------------------------------------------------------------

Part II: CPU Boost
CPU Boost: Tweaking CPU governor for Games in need of single threaded top speed (ex: Asphalt 8 & Ripetide GP2 which suffer from performance dips unless the CPU is boosted)

For certain games you might have unexplained bad performance, this means the game is not really optimized for the device since the default ondemand CPU governor is usually pretty good in extracting performance, some games also suffer if they rely on tilt controls since without screen interaction the CPU fails to ramp up, for such issues you can boost the ondemand CPU governor, a better alternative to the performance governor (which would lock the cpu at high clocks causing heat/drain)

Note for HTC stock Kitkat kernel you will need to use performance CPU governor since ondemand boost no longer works

These tweaks require root access

More info about games in need of CPU governor boost>>


Optimize the stock CPU Governor for more aggressive behavior using a one click script (Free)

- Simply download my HTC One Simple Gaming Boost scripts and follow the tutorial for a one click solution

Remember to always unBoost once you are done gaming to allow the phone to cool down


How to Manually Optimize the stock CPU Governor for more aggressive behavior (Free)

- Download a free app like Tickster MOD

- Go to the General tab scroll down to CPU governor control section and click the Governor Control button, scrolldown to Up_Threshold* and lower it to 50

- From the General tab I/O control section, change the Scheduler to deadline and raise the Read Ahead Buffer Size to 1024 or 2048

- You can Set On Boot from the app's main menu

*Up_Threshold: This is the main load threshold, reducing this value from the stock 90 will make the CPU more aggressive, recommended for gaming: 50

This no longer work for HTC stock Kitkat kernel, instead switch to performance CPU governor as described below


How to Manually Switch your CPU governors (Free)

- Download a free app like Tickster MOD

- Go to the General tab scroll down to CPU governor control section and switch your CPU governor to performance for example, you can also switch your scheduler to deadline in the I/O Control section


How to Automatically Switch your CPU governors for Games of choice (Paid)

- You need to purchase the SetCPU app or another app with similar profile functions

- Launch the app, leave the CPU governor at default ondemand, also leave the scheduler at default

- Go to the PROFILES tab and tick Enable profiles

- Press the plus sign at the top and then Turn this profile one when...

- Select App when asked to Add Condition, select apps again and then the game of your choice

- Press Next, make sure to untick set the CPU Speed, this because we still need to have the ability to use the power saver function so lets leave them at default

- Tick Set CPU governor and select Performance or any other governor of choice

- Tick Set the I/O scheduler and select Deadline or any other scheduler of choice

- Press Next Twice

and you are done! SetCPU will remain resident in the memory and switches to the your selected CPU governor and scheduler on the fly, when you exit the game it will return back to stock, keep in mind the app will remain running in the background so sometimes Android might close it but it will launch again, i suggest you don't close it yourself

----------------------------------------------------------------------------

Part III: More performance tricks
GPU Boost: Reducing Android's Native Resolution (Proof of concept for future performance needs)

The panel of the HTC One is 1080p and although the GPU is powerful there is no denying that almost 70% of it's performance is wasted in the jump from 720p to 1080p especially considering that even at 720p the density is still above 300ppi, thankfully many new games already offer in-game resolution slider like RipeTide GP2 or run in sub 1080p out of box like IronMan 3, RR3 and Asphalt 8, still if any game is badly optimized in the future you might want to use the following tricks in order to downscale the native resolution and almost double your GPU power, one more thing to keep in mind there are some games on the Playstore which fail to support 1080p like Need For Speed Most Wanted, forcing it to 720p will run this game with full effects including motion blur

ADB Shell: The display change Android command

4.2.2
Code:
am display-size 720x1280

4.3
Code:
wm size 720x1280
Change Android's Native Resolution, using Scripts

Change Android's Native Resolution on the fly, using Tasker by @neuTrue
----------------------------------------------------------------------------
 
Last edited:

hamdir

Recognized Contributor
Aug 13, 2008
33,281
27,139
Canada
twitter.com
HTC U12+
Samsung Galaxy S21
My Own HTC One gaming setup>> (constantly updated)

Don't miss these other gaming focused posts:
Gaming Boost scripts for Elemental X custom kernel >>

Gaming boost for HTC stock Kitkat kernel no longer works using up_threhold 50, requires performance CPU govenror>>

Need for Speed™ Most Wanted v1.0.50 updated with HTC One support>>

[MOD][HOW TO] Enable Tegra 4 Graphics on Dead Trigger 2>>

Asphalt 8 1008 version, the OpenGL ES 3.0 edition, it works only on 4.3 ROMs with ES 3.0 drivers>>

A new method to control HTC's encrypted default ThermalD configuration, for stock kernels or custom kernels with GPU throttling>>

HTC One Adreno 320 GPU OC now supported beyond 500mhz thanks to Elemental X kernel 5.4, scores 52fps in Egypt HD at 585mhz>>

Adreno 320 performance comparative with competing GPUs (Septembers 2013)>>

New Adreno 320 drivers in the leaked 3.17 Sense Android 4.3 base, drivers v45 (up from v16), better ES 3.0 support and 2fps gain in Egypt HD offscreen>>

Snapdragon 600's Adreno 320 performance head to head with the iPhone native resolution (1136x640)>>

Change Android's Native Resolution, using Scripts (Android 4.2.2 only)>>

HTC One Adreno 320 GPU - Resolution Scaling GFX Bench tests>>

ThermalD Throttling disable patch>>

HTC One Simple Gaming Boost scripts - Root>>

HTC One, 3D Games Performance Report, Asphalt 8>>

HTC One Adreno 320 GPU - OC GFX Bench tests>>

RipeTide GP 2, Beach Buggy Blitz, Ironman 3 and Real Racing 3, performance tips>>

HTC One supports Open GL ES 3.0 in the stock 4.2.2 OTA>>

HTC One, Adreno 320 GPU scores better in 3DMark with the 2.17.40.1 update (4.2.2)>>

HTC One, Adreno 320 GPU scores better in Egypt HD (41fps vs 37fps) with the 2.17.40.1 update (4.2.2)>>

ElementalX, the HTC One best Gaming Kernel>>

HTC One, 3D Games Performance Report Part III>> (Asphalt 7, Real Racing 3, Fast and Furious 6)

HTC One, 3D Games Performance Report Part II>> (Dead Trigger, Modern Combat 4, Need for Speed Most Wanted)

HTC One, 3D Games Performance Report Part I>> (Beach Buggy Blitz, Temple Run 2, Shadowgun Deadzone)

How To Run Need For Speed Most Wanted on the HTC One>>

HTC One will get OpenGL ES 3.0 support in the upcoming 4.2.2 update>>

HTC One, First Adreno 320 GPU OC 450mhz results>>

HTC One stock Adreno 320 GPU clocks revealed, 400mhz, can be increased up to 487mhz using custom kernels and fauxclock>>

Confirmed, Modern Combat 4 runs smoothly in full effects at native 1080p>>

HTC One, Adreno 320 GPU Shines in new 3DMark tests>>

HTC One, Adreno 320 GPU Shines in the new GL Benchmark 2.7 results>>

HTC One Gameplay video's analysis>>

HTC One Gameplay videos>>

Qualcomm's performance MSM-DCVS governor included on the stock HTC One, default is ondemand>>

CPU/GPU overclocking and underclocking comparative charts thanks to @jerrylzy
@hamdir can we move this to #2 or #3 or whatever in the first page? so that users can see my results:)

I did some tests about overclocking and bottlenecks.

I know a lot of people like over clocking, but because of various bottlenecks, it is really not wise to over clock very high if improvements of benchmarks are excluded.

Overclocking tests:

Antutu:



ARM Miner:


Sunspider


3DMarks:


BaseMark X:


GFXBench:


GT Racing 2:


Real Racing 3:


Riptide GP 2



CPU Bound Tests:

From CPU Tests results, we saw magnificent increase in performance. The suggestion, however, is still not to over clock high.
at high frequencies, the cpu voltage might be so high that can burn up your cpu completely; also, high voltages+frequencies create extreme heat that are both uncomfortable for battery and human hands.

GPU Bound Tests:

We saw huge improvements in well-optimized benchmark apps, but real gaming tests do not show the same.
Overclocking to 501mhz above IMO is totally unnecessary, it creates little performance gain over 450mhz, let alone 490mhz.

It's amazing to see that my tests results reveal the same frequencies of sweet points as those @hamdir wrote in his scripts. :D


Bottlenecks:

I heard more than once people complaining about gaming performance on stock system/kernels. It is really not because of the performance of the chip, as @hamdir stated, it is because of thermal throttling that created a lot of bottlenecks to limit the graphics performance.

When the battery reached 40C, the cpu will be capped at 1134mhz and gpu at 320mhz; When CPU reached 56C, it will be capped at 1134mhz, and further at 1026mhz.

If your unit has difficulty in exhausting heat, the cpu might get hot quickly and your gaming performance is thus significantly reduced.

Bandwidth Bottlenecks:

When CPU freq is lower than 1026mhz, the L2 freq will also be capped at 648mhz and theoretical bandwidth will be reduced from 8.5G/s to 6.4G/s. a 30% drop in bandwidth surely resulted in about 30% drop in gaming performance.
So never cap your cpu freq below 1134mhz!!

CPU Bottlenecks:

CPU single thread performance also affect gaming performance. when GPU is running at 400mhz, CPU performance at quad core 1566mhz is very sufficient. If you enable powersaver, or your chip is throttled, your cpu freq will be capped at 1134mhz and resulted in significant performance decrease.
 
Last edited:

The-Last-Hylian

Senior Member
Feb 14, 2012
2,208
694
www.ivaninsurance.co.uk
Wicked!

Another sweet Hamdir guide! :good::good::good:

The best part? with this tip, most games will run fine even with the Power saver function turned on! saving you both battery and thermals

This is amazing! So you can have Power saving on and still play games really well :):):)

I think I've now found my reason to root!
It's great that it'll do it on the fly too! Enter a game and it'll switch to the best performance, leave the game and it goes back to what it was before the game started, excellent!
 
Last edited:
  • Like
Reactions: hamdir

Funkym0nkey

Senior Member
Jul 10, 2007
916
355
Moving around in the ancient land
Msm dcvs does not play nice with some custom launchers like nova. The bloody thing stutters like it is 2 year old phone while scrolling through home screens on this governor. This governor too is not yet optimised for our s600 properly.

At the moment it is tradeoff either way. Or you have to manually change it each time before playing games. The only launcher that works ok with Msm dcvs is go launcher that to after some tweaking to animations.

From my HTC One, in your face.....
 

hamdir

Recognized Contributor
Aug 13, 2008
33,281
27,139
Canada
twitter.com
HTC U12+
Samsung Galaxy S21
Msm dcvs does not play nice with some custom launchers like nova. The bloody thing stutters like it is 2 year old phone while scrolling through home screens on this governor. This governor too is not yet optimised for our s600 properly.

At the moment it is tradeoff either way. Or you have to manually change it each time before playing games. The only launcher that works ok with Msm dcvs is go launcher that to after some tweaking to animations.

From my HTC One, in your face.....

you dont have to set it manually, Setcpu profiles will automatically switch it for you and leaves ondemand for the launcher

there is no trade off with profiles

dont jump to conclusions so quickly, its essential for gaming, well worth the cost of SetCPU
 
Last edited:

Funkym0nkey

Senior Member
Jul 10, 2007
916
355
Moving around in the ancient land
you dont have to set it manually, Setcpu profiles will automatically switch it for you and leaves ondemand for the launcher

there is no trade off with profiles

dont jump to conclusions so quickly, its essential for gaming, well worth the cost of SetCPU

With profiles yeah it should but it still does not play nice with 2D games. Games like Hill climb racing does not play nice even with MSM-DCVS as well. Game stutters a bit. Only performance Governor seems to help a bit and even that can cause some micro stutter in 2D games. I play 2D arcade type games and most have similar problems with One. They fly on my Nexus and SGS4 and even Oppo Find 5 which uses Krait 200. HTC or Qualcomm needs some more work on this chip.
And I purchased SetCPU long way back to support the developers.
 

hamdir

Recognized Contributor
Aug 13, 2008
33,281
27,139
Canada
twitter.com
HTC U12+
Samsung Galaxy S21
With profiles yeah it should but it still does not play nice with 2D games. Games like Hill climb racing does not play nice even with MSM-DCVS as well. Game stutters a bit. Only performance Governor seems to help a bit and even that can cause some micro stutter in 2D games. I play 2D arcade type games and most have similar problems with One. They fly on my Nexus and SGS4 and even Oppo Find 5 which uses Krait 200. HTC or Qualcomm needs some more work on this chip.
And I purchased SetCPU long way back to support the developers.

well it seems to differ between games, for example msm-dcvs does great for beach buggy, while i noticed MC4 runs very well using ondemand

this is the benefit for porfiles you can enable it for the games that benefits from it

added ondemand tweaks to OP
 

hamdir

Recognized Contributor
Aug 13, 2008
33,281
27,139
Canada
twitter.com
HTC U12+
Samsung Galaxy S21
I'm gonna assume OnDemand locks 2 cores like the HoX, or is ondemand finally ondemand like it should be? :)

it wasn't the fault of ondemand, it was nvidia's fault where the maximum clock speed step is single core, so when the CPU boosted to max it actually locked into a single core crippling performance, non of this exist on qualcomm's side

added recommended ondemand values to OP
 

Pointlol

Senior Member
Dec 24, 2011
462
105
Hamdir, have you tried Faux's Intellidemand? It doesn't seem bad for gaming, but haven't tested it too much
 

Currykiev

Senior Member
Apr 26, 2011
64
21
It seems some people here have not 100% understood (or fully read:banghead: ) Hamdirs post.

You can use setcpu to switch between governors per app. For example, as default it is standard. Press the icon for the game you want to play and the governor will change AUTOMATICALLY while playing. End the game and setcpu will switch back AUTOMATICALLY.

Thanks for the info Hamdir. Seems its time to root. ;)

Sent from my HTC One using Tapatalk 2
 
  • Like
Reactions: hamdir

Pointlol

Senior Member
Dec 24, 2011
462
105
right now im focused on reviewing stock kernel, later i might have a look at custom kernels

but after the strange death of my One X, im not too excited to mess with kernels

Cool. I wouldn't worry about that though since it's more of a freak case honestly. There are so many people using custom kernels for extended periods without any issues
 

hamdir

Recognized Contributor
Aug 13, 2008
33,281
27,139
Canada
twitter.com
HTC U12+
Samsung Galaxy S21
ok i did some more tests

three things for sure

- also it's delayed, but throttling does eventually happens, i noticed when testing few games in a row performance suffered

- the 1.28 ondemand values in the OP are a lot better for gaming, so if you don't like to bother with profiles and SetCPU, simply changing back ondemand to the recommended values will do

- not all games are running well with MSM-DCVS, for example i suspect MC4 is running better with the tweaked ondemand (maybe MSM-DCVS is driving it to throttle too quick), NFSMW running the same on both, Beach buggy running much better with the tweaked ondemand but locked smooth with MSM-DCVS, another game running better with this governor is RR3

conclusion for now, tweak your ondemand back to the values in OP if you value your gaming the most at the slight loss of battery life, you can use profiles and MSM-DCVS for suffering games like Beach Buggy Blitz (i wish SetCPU profiles allows specific governor tweaks per profile)

i think any optimized games for the s600 (like MC4) will not require us to switch the governor (perphaps its switching on its own), this trick is only needed for games that so far do not specifically support our device or SOC

one more thing, it might be my imagination, my previous PVS2 was definitely running cooler and hence smoother than my current PVS3, maybe the GPU has it's own binning?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    ----------------------------------------------------------------------------

    Sense 6.0 official game boost method

    HTC added High Performance Mode in it's Sense 6.0 update, which is acts like an official form of game boost, now locked users can enjoy the full speed of the s600 as well

    Higher Performance Mode (HPM) in Stock Sense 6 software, hidden in developer options (Screenshots)
    - Go to your HTC One (M8) settings menu and scroll to the very bottom. Select "About" and open the "Software Information" menu.

    - Tap on the "Build Number" several times until you get a message confirming that "you're now a developer".

    - The developer options menu should now appear in your settings list. Go ahead and open it. Note that this section contains settings that should not be modified unless necessary. Doing so may make your phone behave in unexpected ways. Proceed at your own risk from now on.

    - The fifth option in the list should be labeled "High Performance Mode". Enable it by marking the tick to the right. Tap again to disable the mode when it isn't required.

    This will force the CPU into higher frequencies, delay throttling and prevent stalls/fps dips from any affected app (try it with Ripetide GP2)

    Always remember that this boost will take a heavy tole on the battery and thermals, so remember to disable HPM when you are done gaming

    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------


    The following information is for Sense 5.0 / 5.5 and more advanced performance tips

    Fast version of this guide and simple solution:

    For new comers, this section should be enough

    Facts: Gaming on the HTC One can be negatively affected by two factors, CPU/GPU thermal throttling (down) and the inability to boost the CPU in tilt /sensor controlled games

    Example: By default Asphalt 8 in tilt controls will fluctuates between smooth and laggy, with touch controls it's smooth until the GPU throttles down after 15 minutes and then it becomes laggy, with the following solution the HTC One will run this game above 30fps locked even with max graphics effects
    Scripts: Prevent CPU / GPU throttling and Boost the CPU | last updated 11-12-2013

    Simply use my Boost script before your start your favorite game, it will insure using the max CPU and GPU speed during your game session, once you are done gaming unBoost and the device returns to it's stock state

    The only requirement is acquiring root

    - Simply download my HTC One Simple Gaming Boost scripts and follow the tutorial for a one click solution

    Remember to always unBoost once you are done gaming to allow the phone to cool down

    I still recommend to take the time and read through the the rest of this guide, it will help you understand how the HTC One processor works and how to extract the best of it

    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------


    Comprehensive HTC One gaming performance guide and multiple solutions:

    The HTC One runs heavy 3D games like Modern Combat 4 in full visual quality, native 1080p resolution and remains above 30fps, equally the HTC One Adreno 320 GPU beats the iPad 4 GPU in native performance, unfortunately you will be surprised when your powerful HTC One suddenly drops smooth frame rate after some time of gameplay

    This because like most Snapdragon 4 pro and 600 devices, Qualcomm throttles the CPU clocks when it hits a select temperature target, this is done to both protect the device, reduce overheating and extend battery life, unfortunately the target temperature is entirely up to the OEM and these targets vary greatly between quad core krait devices, to make matters worse certain OEMs choose to throttle the Adreno 320 GPU as well, the GPU is the most important gaming hardware in your device, currently we have abundance of CPU power but we can never have enough GPU power, this is why dropping the GPU clocks will directly drop your gaming performance, check this post on how different device builders throttle their Snapdragons

    The HTC One by default throttles the CPU when it reaches 57c but it also throttles the GPU with CPU when the battery arrives at 40c (probably to safeguard the built-in battery), it drops from 400mhz to 320mhz, after 20 minutes or so of gameplay the GPU will slowdown, throttling the CPU at 57c is fine but the 40c battery GPU threshold is simply too soon, this throttling is just preservative especially since the GPU is already under clocked at 400mhz, equally this device metal shell actually acts a heatsink and gets rids of it's heat quite well

    The other part of this gaming equation is CPU speed, by default the speedy quad core favors medium CPU frequencies for average jobs and will ramp up fairly well when more is needed, this is all controlled by the CPU governor, however there are certain heavy games which still fail to call full CPU speed or maintain it, particularly if a game relies on tilt or sensor controls, like Asphalt 8 or Ripetide GP 2, for such games you will need to increase the CPU aggressiveness

    In conclusion, if we want to have the full gaming performance expected from our HTC One, we will have to disable GPU throttling and boost the CPU

    This guide consists of three parts:

    . Part I: GPU Throttling

    . Part II: CPU Boost

    . Part III: More performance tricks (future proofing)

    ----------------------------------------------------------------------------

    Part I: GPU Throttling
    Reminder the following tips will use the device to its potential and therefore will abuse the battery life, so try to be moderate and don't over use the device at high temps


    General tips for stock non rooted users

    In order to control throttling on your HTC One without root, you have little choice but to prevent your device from heating and so delay throttling, consider the following tips:

    - Never play games on the charger otherwise this means instant overheat

    - Covers and cases this might be the most important tip, the metalic back plate is linked to the CPU and meant as a heatsink by design, so covers especially hard covers will prevent the metal back plate from releasing heat, choose a cover which doesn't trap the heat, i found the worst is polycarbonate hard shells, meanwhile TPU did conduct heat a little better, finally the official double flip case was best for me since it's rubber, has many exposed areas and the device a little relaxed

    - Thankfully the power saver mode doesn't reduce the GPU clock only the CPU is dropped to 1134mhz, so you can rely on the power saver mode to delay throttling

    - Auto Sync and background activity will contribute to processor usage and heat increase, so disable auto sync and kill background processes

    - Screen brightness is also be a contributor to temperatures as well, so don't go for the max

    - Ambient temperature your ambient temperature will affect the temps of your device, so if you are in a hot environment throttling will come sooner than later

    Unfortunately at 40c battery there isn't much we can do, when gaming your device will reach this temp sooner or later, this is why rooting and custom recovery gives us much greater control and allows us to unleash gaming on this device


    Prevent CPU / GPU throttling and Boost the CPU - requires root

    You can simply lock the Max CPU and GPU speeds using the gaming boost scripts described in the second part of this guide, the Boost script will set the Max CPU and GPU clock to read only preventing the system from throttling them down, once you unBoost the device returns to it's stock state

    - Simply download my HTC One Simple Gaming Boost scripts and follow the tutorial for a one click solution

    Remember to always unBoost once you are done gaming to allow the phone to cool down


    Disable GPU throttling - requires root and custom recovery

    You can also disable GPU throttling all together or configure throttling on stock kernel thanks to jerrylzy's work

    - Download the Stock no gpu patch (stock_nogpu.zip) and flash it from custom recovery

    This will keep the CPU throttling at 57c but disables GPU throttling, your games will no longer lag suddenly once the battery reaches 40c, you can also use the performance patch which further delays CPU throttling

    Alternatively you can read through the tutorial and customize the thermald file for your liking


    Custom kernels with built-in thermal control - requires root and custom recovery

    If your device is Unlocked and Rooted, you can flash a custom kernel which has thermal controls, for example the ElementalX Kernel replaces the HTC thermal driver with it's own and gives us control during the kernel installation process, as explained by flar2 the kernel developer
    Thermal Control
    I've added kernel based thermal control and throttling. HTC's thermald is very aggressive and throttles the CPU frequency pretty much anytime you use all four processors. This kernel based implementation allow better performance while still protecting your phone from overheating. There are three levels of thermal control, which can be chosen in the installer or changed in /etc/elementalx.conf. The default option is recommended. With the run cool option, your CPU will run about 5C cooler than default while under heavy load. With the run hot option, the CPU will run about 5C warmer than default under heavy load.
    There is no throttling of the GPU.

    The CPU throttling kicks in when it hits certain temperatures. The first level throttles to 1728 if you're overclocking (there is no change if you are at stock freqs or lower), the second level throttles to 1350, the third level throttles to 918, the fourth to 384. It is unlikely that you will ever get to the fourth throttling level even in an extremely hot climate.

    The Snapdragon 600 GPU is able to achieve 450mhz, in fact it's the stock clock on the SGS4, ElementalX OCs the GPU to 450mhz by default, the default throttling behavior for this kernel starts at 63c which is massively better than HTC's 40c and thankfully it only affects the CPU

    By the way the default throttling files on the s600 SGS4 will not start to throttle before 85c and it doesn't drop the GPU either, this should give a good idea how held back the s600 is on the HTC One

    I found the following configuration the most optimal when using ElementalX

    - Don't go above the stock 1728mhz in AROMA (kernel installer), for gaming we really don't need more so lets not OC to keep the heat down, in fact most games will not use more than 2 to 3 CPU cores, also if you don't lock it from the installer it will never stick, you can even go with 1533mhz lock for further heat reduction

    - Select your throttling temps from AROMA, thankfully this only affects the CPU and not the GPU, at default throttling it begins at 63c, with run hot it starts at 66c, run cool is 58c and run extra cool is 54c, you will have to find the sweet spot for your device, more info here

    - Select GPU 450mhz from AROMA, we didn't OC the CPU in order to have thermal room for GPU OC

    - You can even go with power saver mode which reduces CPU to 1134mhz, in most games you notice any drop at these CPU clocks, GPU will remain at max clock and heat will be further delayed
    ----------------------------------------------------------------------------

    Part II: CPU Boost
    CPU Boost: Tweaking CPU governor for Games in need of single threaded top speed (ex: Asphalt 8 & Ripetide GP2 which suffer from performance dips unless the CPU is boosted)

    For certain games you might have unexplained bad performance, this means the game is not really optimized for the device since the default ondemand CPU governor is usually pretty good in extracting performance, some games also suffer if they rely on tilt controls since without screen interaction the CPU fails to ramp up, for such issues you can boost the ondemand CPU governor, a better alternative to the performance governor (which would lock the cpu at high clocks causing heat/drain)

    Note for HTC stock Kitkat kernel you will need to use performance CPU governor since ondemand boost no longer works

    These tweaks require root access

    More info about games in need of CPU governor boost>>


    Optimize the stock CPU Governor for more aggressive behavior using a one click script (Free)

    - Simply download my HTC One Simple Gaming Boost scripts and follow the tutorial for a one click solution

    Remember to always unBoost once you are done gaming to allow the phone to cool down


    How to Manually Optimize the stock CPU Governor for more aggressive behavior (Free)

    - Download a free app like Tickster MOD

    - Go to the General tab scroll down to CPU governor control section and click the Governor Control button, scrolldown to Up_Threshold* and lower it to 50

    - From the General tab I/O control section, change the Scheduler to deadline and raise the Read Ahead Buffer Size to 1024 or 2048

    - You can Set On Boot from the app's main menu

    *Up_Threshold: This is the main load threshold, reducing this value from the stock 90 will make the CPU more aggressive, recommended for gaming: 50

    This no longer work for HTC stock Kitkat kernel, instead switch to performance CPU governor as described below


    How to Manually Switch your CPU governors (Free)

    - Download a free app like Tickster MOD

    - Go to the General tab scroll down to CPU governor control section and switch your CPU governor to performance for example, you can also switch your scheduler to deadline in the I/O Control section


    How to Automatically Switch your CPU governors for Games of choice (Paid)

    - You need to purchase the SetCPU app or another app with similar profile functions

    - Launch the app, leave the CPU governor at default ondemand, also leave the scheduler at default

    - Go to the PROFILES tab and tick Enable profiles

    - Press the plus sign at the top and then Turn this profile one when...

    - Select App when asked to Add Condition, select apps again and then the game of your choice

    - Press Next, make sure to untick set the CPU Speed, this because we still need to have the ability to use the power saver function so lets leave them at default

    - Tick Set CPU governor and select Performance or any other governor of choice

    - Tick Set the I/O scheduler and select Deadline or any other scheduler of choice

    - Press Next Twice

    and you are done! SetCPU will remain resident in the memory and switches to the your selected CPU governor and scheduler on the fly, when you exit the game it will return back to stock, keep in mind the app will remain running in the background so sometimes Android might close it but it will launch again, i suggest you don't close it yourself

    ----------------------------------------------------------------------------

    Part III: More performance tricks
    GPU Boost: Reducing Android's Native Resolution (Proof of concept for future performance needs)

    The panel of the HTC One is 1080p and although the GPU is powerful there is no denying that almost 70% of it's performance is wasted in the jump from 720p to 1080p especially considering that even at 720p the density is still above 300ppi, thankfully many new games already offer in-game resolution slider like RipeTide GP2 or run in sub 1080p out of box like IronMan 3, RR3 and Asphalt 8, still if any game is badly optimized in the future you might want to use the following tricks in order to downscale the native resolution and almost double your GPU power, one more thing to keep in mind there are some games on the Playstore which fail to support 1080p like Need For Speed Most Wanted, forcing it to 720p will run this game with full effects including motion blur

    ADB Shell: The display change Android command

    4.2.2
    Code:
    am display-size 720x1280

    4.3
    Code:
    wm size 720x1280
    Change Android's Native Resolution, using Scripts

    Change Android's Native Resolution on the fly, using Tasker by @neuTrue
    ----------------------------------------------------------------------------
    12
    My Own HTC One gaming setup>> (constantly updated)

    Don't miss these other gaming focused posts:
    Gaming Boost scripts for Elemental X custom kernel >>

    Gaming boost for HTC stock Kitkat kernel no longer works using up_threhold 50, requires performance CPU govenror>>

    Need for Speed™ Most Wanted v1.0.50 updated with HTC One support>>

    [MOD][HOW TO] Enable Tegra 4 Graphics on Dead Trigger 2>>

    Asphalt 8 1008 version, the OpenGL ES 3.0 edition, it works only on 4.3 ROMs with ES 3.0 drivers>>

    A new method to control HTC's encrypted default ThermalD configuration, for stock kernels or custom kernels with GPU throttling>>

    HTC One Adreno 320 GPU OC now supported beyond 500mhz thanks to Elemental X kernel 5.4, scores 52fps in Egypt HD at 585mhz>>

    Adreno 320 performance comparative with competing GPUs (Septembers 2013)>>

    New Adreno 320 drivers in the leaked 3.17 Sense Android 4.3 base, drivers v45 (up from v16), better ES 3.0 support and 2fps gain in Egypt HD offscreen>>

    Snapdragon 600's Adreno 320 performance head to head with the iPhone native resolution (1136x640)>>

    Change Android's Native Resolution, using Scripts (Android 4.2.2 only)>>

    HTC One Adreno 320 GPU - Resolution Scaling GFX Bench tests>>

    ThermalD Throttling disable patch>>

    HTC One Simple Gaming Boost scripts - Root>>

    HTC One, 3D Games Performance Report, Asphalt 8>>

    HTC One Adreno 320 GPU - OC GFX Bench tests>>

    RipeTide GP 2, Beach Buggy Blitz, Ironman 3 and Real Racing 3, performance tips>>

    HTC One supports Open GL ES 3.0 in the stock 4.2.2 OTA>>

    HTC One, Adreno 320 GPU scores better in 3DMark with the 2.17.40.1 update (4.2.2)>>

    HTC One, Adreno 320 GPU scores better in Egypt HD (41fps vs 37fps) with the 2.17.40.1 update (4.2.2)>>

    ElementalX, the HTC One best Gaming Kernel>>

    HTC One, 3D Games Performance Report Part III>> (Asphalt 7, Real Racing 3, Fast and Furious 6)

    HTC One, 3D Games Performance Report Part II>> (Dead Trigger, Modern Combat 4, Need for Speed Most Wanted)

    HTC One, 3D Games Performance Report Part I>> (Beach Buggy Blitz, Temple Run 2, Shadowgun Deadzone)

    How To Run Need For Speed Most Wanted on the HTC One>>

    HTC One will get OpenGL ES 3.0 support in the upcoming 4.2.2 update>>

    HTC One, First Adreno 320 GPU OC 450mhz results>>

    HTC One stock Adreno 320 GPU clocks revealed, 400mhz, can be increased up to 487mhz using custom kernels and fauxclock>>

    Confirmed, Modern Combat 4 runs smoothly in full effects at native 1080p>>

    HTC One, Adreno 320 GPU Shines in new 3DMark tests>>

    HTC One, Adreno 320 GPU Shines in the new GL Benchmark 2.7 results>>

    HTC One Gameplay video's analysis>>

    HTC One Gameplay videos>>

    Qualcomm's performance MSM-DCVS governor included on the stock HTC One, default is ondemand>>

    CPU/GPU overclocking and underclocking comparative charts thanks to @jerrylzy
    @hamdir can we move this to #2 or #3 or whatever in the first page? so that users can see my results:)

    I did some tests about overclocking and bottlenecks.

    I know a lot of people like over clocking, but because of various bottlenecks, it is really not wise to over clock very high if improvements of benchmarks are excluded.

    Overclocking tests:

    Antutu:



    ARM Miner:


    Sunspider


    3DMarks:


    BaseMark X:


    GFXBench:


    GT Racing 2:


    Real Racing 3:


    Riptide GP 2



    CPU Bound Tests:

    From CPU Tests results, we saw magnificent increase in performance. The suggestion, however, is still not to over clock high.
    at high frequencies, the cpu voltage might be so high that can burn up your cpu completely; also, high voltages+frequencies create extreme heat that are both uncomfortable for battery and human hands.

    GPU Bound Tests:

    We saw huge improvements in well-optimized benchmark apps, but real gaming tests do not show the same.
    Overclocking to 501mhz above IMO is totally unnecessary, it creates little performance gain over 450mhz, let alone 490mhz.

    It's amazing to see that my tests results reveal the same frequencies of sweet points as those @hamdir wrote in his scripts. :D


    Bottlenecks:

    I heard more than once people complaining about gaming performance on stock system/kernels. It is really not because of the performance of the chip, as @hamdir stated, it is because of thermal throttling that created a lot of bottlenecks to limit the graphics performance.

    When the battery reached 40C, the cpu will be capped at 1134mhz and gpu at 320mhz; When CPU reached 56C, it will be capped at 1134mhz, and further at 1026mhz.

    If your unit has difficulty in exhausting heat, the cpu might get hot quickly and your gaming performance is thus significantly reduced.

    Bandwidth Bottlenecks:

    When CPU freq is lower than 1026mhz, the L2 freq will also be capped at 648mhz and theoretical bandwidth will be reduced from 8.5G/s to 6.4G/s. a 30% drop in bandwidth surely resulted in about 30% drop in gaming performance.
    So never cap your cpu freq below 1134mhz!!

    CPU Bottlenecks:

    CPU single thread performance also affect gaming performance. when GPU is running at 400mhz, CPU performance at quad core 1566mhz is very sufficient. If you enable powersaver, or your chip is throttled, your cpu freq will be capped at 1134mhz and resulted in significant performance decrease.
    6
    HTC One Simple Gaming Boost scripts - Root (attached) | last updated 11-12-2013
    While the HTC One mostly ramps up the CPU pretty well on it's own for the majority of (optimized) games, certain games still need a good old fashioned boost to the CPU governor, you can figure out these games when they fluctuate between very smooth fps and lag for no obvious reason (like lagging in non detailed areas)

    Example of such games: Ripetide GP2, Beach Buggy Blitz, Real Racing 3 and Iron Man 3 especially in tilt controls

    Use the attached one click scripts to Boost your CPU quickly before you game and then unBoost when you are done gaming

    Make sure to download the proper package based on your choice of Kernel and Android base

    Usage Tutorial

    - You will need Root and Script Manager from the Playstore

    - Run Script Manager and choose browse as root

    - Using Script Manager scroll to the extracted scripts location

    - Select Boost.sh click the su and fav icons (skull and star), click save and exit

    - Go to your homescreen and add a SManager widget, select Boost.sh

    - Do the same for unBoost.sh

    - Now you can simply press on Boost.sh on your homescreen to boost your CPU and unBoost.sh to go back

    - Have fun!

    Remember to always unBoost once you are done gaming to allow the phone to cool down

    For stock kernel the phone might rarely ask for superuser permissions in order to reset the max clocks, if such request happens simply deny it

    ------------------------------------------------------

    Which package to use

    Android 4.4 - stock kernel: HTC_One_M7_GamingBoost_Scripts_StockKernel_KK.rar

    Android 4.3 and older - stock kernel: HTC_One_M7_GamingBoost_Scripts_StockKernel_preKK.rar

    Android 4.3 and 4.4 - Elemental X custom kernel: HTC_One_M7_GamingBoost_Scripts_CustomKernel_EX.rar

    Android 4.4 - other custom kernels: HTC_One_M7_GamingBoost_Scripts_CustomKernel_KK.rar (might need some editing from your end)

    Android 4.3 and older - other custom kernels: HTC_One_M7_GamingBoost_Scripts_CustomKernel_preKK.rar (might need some editing from your end)

    ------------------------------------------------------

    The Scripts Explained

    Stock Kernel

    The Boost.sh script does the following changes:
    - sets your CPU governor to ondemand
    - makes it aggressive by boosting up_threshold to 50
    - sets the main core scaling_max_freq to the default 1566mhz and read only permissions (prevents throttling by the system, the other three cores will remain free)
    - force the GPU max_gpuclk to 400mhz and read only permissions
    - sets the scheduler to deadline

    Note for HTC Kitkat Kernel
    The ondemand CPU governor was change and boost using up_threshold 50 is no longer effective, instead we need to rely on the performance CPU governor, I have attached a separate package for KK, remember to unBoost after you are done gaming since performance governor is a big drainer

    The Boost.sh script for Kitkat does the following changes:
    - sets your CPU governor to performance
    - sets the main core scaling_max_freq to the default 1566mhz and read only permissions (prevents throttling by the system, the other three cores will remain free)
    - force the GPU max_gpuclk to 400mhz and read only permissions
    - sets the scheduler to deadline

    The unBoost.sh script defaults back ondemand governor, up_threshold 90, cfq scheduler and resets write permissions for CPU and GPU max clock

    I have chosen 1566mhz lock for the main core to delay heat but you can also choose the Max CPU speed you want for the main core: between 1728000, 1674000, 1566000, 1458000, 1350000, 1242000 and 1134000, the other three cores will remain free on their own and will get throttled after the battery crosses 40c

    (keep the powersave disable / enable in the script, this is the only way to change the CPU clocks with pnpmanager enabled)

    Boost.sh (Kitkat)
    Code:
    echo ""
    echo " Switching...CPU governor"
    echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo ""
    echo " Locking...CPU clocks"
    echo 1 > /sys/power/powersave
    chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 1566000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 0 > /sys/power/powersave
    echo ""
    echo " Switching...GPU governor"
    echo "ondemand" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
    echo ""
    echo " Locking...Max GPU clocks"
    chmod 666 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    chmod 444 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    echo ""
    echo " Switching...scheduler"
    echo "deadline" > /sys/block/mmcblk0/queue/scheduler
    echo ""
    echo " Done"
    echo ""
    exit 0

    Boost.sh (pre Kitkat)
    Code:
    echo ""
    echo " Boosting...ondemand governor"
    echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
    echo ""
    echo " Locking...CPU clocks"
    echo 1 > /sys/power/powersave
    chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 1566000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 0 > /sys/power/powersave
    echo ""
    echo " Switching...GPU governor"
    echo "ondemand" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
    echo ""
    echo " Locking...Max GPU clocks"
    chmod 666 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    chmod 444 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    echo ""
    echo " Switching...scheduler"
    echo "deadline" > /sys/block/mmcblk0/queue/scheduler
    echo ""
    echo " Done"
    echo ""
    exit 0

    unBoost.sh
    Code:
    echo ""
    echo " Switching...CPU governor"
    echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
    echo ""
    echo " Unlocking...CPU clocks"
    chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo ""
    echo " Switching...GPU governor"
    echo "ondemand" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
    echo ""
    echo " Unlocking...Max GPU clocks"
    chmod 666 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
    echo ""
    echo " Switching...scheduler"
    echo "cfq" > /sys/block/mmcblk0/queue/scheduler
    echo ""
    echo " Done"
    echo ""
    exit 0

    Custom Kernels

    For custom performance kernels like Elemental X and Faux, we can switch to a better performing simple GPU governor and raise the GPU clock as well, Snapdragon 600 Adreno 320 GPU can handle 450mhz easily (up from the HTC One default 400mhz)

    Using the scripts we also set permissions for the GPU clock to read only in order to prevent any possible change by the system (pnpmanager)

    Attached are generic custom kernel packages and an Elemental X specific version since it uses a different GPU frequency table, a unique hybrid ondemand governor and graphics boost ability

    The Elemental X package is explained in detail here

    ------------------------------------------------------

    Editing the Scripts

    You can edit the scripts using Notepad++ and set the values of your choice (like changing the max clock speed)

    ------------------------------------------------------

    Useful resources

    GPU overclocking performance gains can be seen in this post

    CPU / GPU overclocking and underclocking comparative can be seen in this post

    IO schedulers are nicely explained in this thread
    5
    Higher Performance Mode (HPM) in Stock Sense 6 software, hidden in developer options - no root or unlock needed

    Time to wakeup this thread again :)

    HTC basically kills game boost with Sense 6 thanks to the hidden High Perfomance Mode (HPM) the best news is that stock non rooted users can finally enjoy the full power of s600 as well

    so if you have received the Sense 6 update on your M7 here is how to enable it

    as always keep knocking on the build number until the dev options are unlocked

    Enable-Android-developer-options.jpg


    Open-the-developer-options-menu.jpg


    Enable-High-Performance-Mode.jpg


    images form the Phonearena M8 HPM guide
    - Go to your HTC One (M8) settings menu and scroll to the very bottom. Select "About" and open the "Software Information" menu.

    - Tap on the "Build Number" several times until you get a message confirming that "you're now a developer".

    - The developer options menu should now appear in your settings list. Go ahead and open it. Note that this section contains settings that should not be modified unless necessary. Doing so may make your phone behave in unexpected ways. Proceed at your own risk from now on.

    - The fifth option in the list should be labeled "High Performance Mode". Enable it by marking the tick to the right. Tap again to disable the mode when it isn't required.

    remember use it when you game and turn it off after that, otherwise you torture your battery
    5
    Resolution change works in 4.3, it's just the command which have been tweaked

    the previous resolution command in 4.2.2 was:

    am display-size 720x1280

    for 4.3 it becomes:

    wm size 720x1280

    that's it for android 4.3 replace am with wm and here are the new commands
    Code:
    wm [subcommand] [options]
    wm size [reset|WxH]
    wm density [reset|DENSITY]
    wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]

    Resolution Change Scripts updated

    more here:

    http://xdaforums.com/showthread.php?t=2424705

    http://xdaforums.com/showthread.php?t=2404783