Header Ads

HD2/Leo 3D Driver Patch v1.1 - FAST!

DEVELOPERS: Coming soon: DLL / API you can use directly in your own applications, so it will run smooth even without users having this patch installed!



I must be crazy for doing this, as all my hacks and patches have only lead HTC to rip me off on the one app I actually sell, but here it is, 3D driver patch for the Leo. Seems HTC royally screwed up in the 3D driver area again.

This patch focusses mainly on a modified OpenGL ES CM, but a CL wrapper is also included (adaptation of NuShrike's CL wrapper) and so is the TG-01 D3D driver. The latter is faster than the D3D driver that comes with the Leo, but it's still not very fast.

About
For many Leo users several OpenGL games and apps do not work properly, are very slow, or stutter. This patch aims to fix these issues somewhat. A number of people have helped me test various apps and games with various revisions of this patch, but I'm sure there'll be some issues with it or in combination with app X and games Y and Z, etc etc.

Usage - READ ME
There is a very important thing to know about this patch, and that is that it has two modes of working around the current issues. "Normal" mode and "Anti-Stutter" mode.

"Normal" mode is generally the fastest, is the default, and should give best results for most apps and games.

"Anti-Stutter" mode is quite a bit slower, but for some apps and games is needed to make them run smoothly (those are marked with a * in the list below). This mode generally slows all the other apps and games down!

After installation there is an app in your Start Menu called "glModeSwitch". This app switches between "Normal" and "Anti-Stutter" mode - yes, it needs an icon, and no, I have not figured out a way to auto-select the mode yet.

Normally, you should not need to use it. However, if you run into a game or app that stutters or "lags", try enabling "Anti-Stutter" mode and see if it works better. Report in this thread if you find a new one Don't forget to turn it off afterwards!

Please note that switching the mode takes about 10 seconds to go into effect for apps and games you already have running. It is immediate for apps and games you start after switching.

Apps and games
This patch has been tested (at least somewhat) with the following apps and games:

glBenchmark
helios.dev "Test OpenGL"
A few of my own OpenGL test tools
Sense
SPB Mobile Shell 3.5 (HW accel)
Opera Mobile (GL mode, see this post by Tung_meister)
Cubespace
NFS Undercover [v0.1.5 doesn't seem to work nice, but v17 does?]
Electopia Demo
Boom Blox *
Tower Defense **
Flight Commander *
Monopoly World *
Xtrakt
Experiment 13

* Reported to work best in "anti-stutter" mode
** Reports differ on whether to use "anti-stutter" mode or not

Note that if your phone is busy doing other things it will still make your phone slow! This patch only tries to fix driver-related stutter.

Please report your games/apps, whether they work better or not and in which mode they work right!

glBenchmark
Attached are some glBenchmark results of the various patch revisions. Some awesome improvements in the HD and Pro tests, as well as kTriangles/s. Though glBenchmark is nice, these figures do need to be taken with a grain of salt - it's not all that is important, smoothness and compatibility are also important.

Here's a grab out of the results.

Stock HD2 vs Patch 1.1

GLBenchmark HD ES 1.1: 487% ~ 1598 Frames up from 328
GLBenchmark HD ES 1.1 no GPU Skinning: 502% ~ 1647 Frames up from 328
GLBenchmark PRO ES 1.1: 107% ~ 229 Frames up from 215
GLBenchmark Pro ES 1.1 no GPU Skinning: 157% ~ 625 Frames up from 397
Swapbuffer speed: 496% ~ 556 up from 112

Averages: Lights: 116% ~ 1550 kTriangles/s up from 1350
Averages: Texture Filter: 159% ~ 2150 kTriangles/s up from 1350
Averages: Texture Size: 158% ~ 2150 kTriangles/s up from 1350
Averages: Triangles: 161% ~ 2150 kTriangles/s up from 1350

Compatibility
This has only been tested on the Leo. It may be compatible with the TG-01 and S200, though those don't seem to have the same issues the Leo does. If you're going to try it on one of those devices, please do share the results.

hdubli's results confirm this driver also improves performance on the Acer S200 / F1. And nico101 reports the same thing for the TG-01.

Thanks to
l3v5y, clubtech, christonabike, aussiebum, kholk, hanskl, NuShrike, GinKage and anyone I might have forgotten who helped test or had useful comments, etc.

If you appreciate this patch, please make a donation - a link to do so is in my signature.!

Note: if you tried one of the beta/private patches, make sure to uninstall it manually before installing this one!

NO REDISTRIBUTING OR COOKING IN THIS DRIVER! --- SOFT-RESET AFTER INSTALLATION

INSTALL TO DEVICE, NOT STORAGE CARD!!!

source

No comments:

Powered by Blogger.