Do you remember how EnableVSync=0 speeds up MenuEnhancement (at least on earlier devices)?
I've investigated that HTC uses vertical synchronization in:
-ManilaToday.dll
-Manila.exe
-mode9.dll
-HTCAlbum.exe
-HTCPhotoPicker.exe
-YouTube.exe
-htcAfe.dll
-HTCFPTViewer.exe
In some apps like album disabling vsync gives noticeable perfomance boost, in some not (for example, I don't see any differences in manila, but probably some scenes would be faster)
In attachment you can get Album 2011 executables with and without vsync: check photo scrolling.
How to patch these files?
-open file in IDA
-go to ExtEscape xrefs, look at R1, it should be: 0x186B8, 0x186B9 or 0x186BA
-patch BL ExtEscape to NOP or any meaningless operation
Tech info:
vsync can be enabled in 3d party applications using this code:
Please, don't ask me to patch your files. If you don't notice boost on faster devices, don't post your negative experience: I test everything only on SE X1
I've investigated that HTC uses vertical synchronization in:
-ManilaToday.dll
-Manila.exe
-mode9.dll
-HTCAlbum.exe
-HTCPhotoPicker.exe
-YouTube.exe
-htcAfe.dll
-HTCFPTViewer.exe
In some apps like album disabling vsync gives noticeable perfomance boost, in some not (for example, I don't see any differences in manila, but probably some scenes would be faster)
In attachment you can get Album 2011 executables with and without vsync: check photo scrolling.
How to patch these files?
-open file in IDA
-go to ExtEscape xrefs, look at R1, it should be: 0x186B8, 0x186B9 or 0x186BA
-patch BL ExtEscape to NOP or any meaningless operation
Tech info:
vsync can be enabled in 3d party applications using this code:
Code:
#define VSYNC_BASE 0x186B8
#define VSYNC_SWITCH (VSYNC_BASE+0)
#define VSYNC_ENABLE (VSYNC_BASE+1)
#define VSYNC_DISABLE (VSYNC_BASE+2)
//slower (sometimes causes terrible lags):
int EnableVSync(HDC hdc, int enable)
{
char en = (char)enable;
return ExtEscape(hdc, VSYNC_SWITCH, 4, &en, NULL, NULL);
};
//or
//faster:
int EnableVSync(HDC hdc, int enable)
{
return ExtEscape(hdc, enable ? VSYNC_ENABLE : VSYNC_DISABLE, 0, NULL, 0, NULL);
}
Please, don't ask me to patch your files. If you don't notice boost on faster devices, don't post your negative experience: I test everything only on SE X1
Attachments
Last edited: