60FPS Inflight hook
Moderator: JeremyaFr
60FPS Inflight hook
-
- Posts: 218
- Joined: Mon Dec 08, 2014 10:59 pm
EDIT: XWAUP/DSUCP already comes with a 60+FPS hook "hook_time.dll". Do not use my 60FPS hook for XWAUP/DSUCP or there will be an error message stating that the hook could not be loaded. Only use if hook_time.dll is having issues.
Hello folks,
I have created a hook that will increase the frame limit from 30 to 60fps inflight. The game will be much smoother.
This can be applied to any of the games in the X-Wing series: X-Wing, TIE Fighter, X-Wing vs TIE Fighter, Balance of power and X-Wing Alliance
Compatible with the Disc, GoG and Steam versions.
Download: https://1drv.ms/u/s!AoEpIrw6LOkUjbF_1Vza7GDWJGkXXg
Changelog:
1.0.2
- XWA: Hangar is now 60FPS
1.0.1
- Fixed issue with certain machines crashing at game startup
1.0
- Initial version
Hello folks,
I have created a hook that will increase the frame limit from 30 to 60fps inflight. The game will be much smoother.
This can be applied to any of the games in the X-Wing series: X-Wing, TIE Fighter, X-Wing vs TIE Fighter, Balance of power and X-Wing Alliance
Compatible with the Disc, GoG and Steam versions.
Download: https://1drv.ms/u/s!AoEpIrw6LOkUjbF_1Vza7GDWJGkXXg
Changelog:
1.0.2
- XWA: Hangar is now 60FPS
1.0.1
- Fixed issue with certain machines crashing at game startup
1.0
- Initial version
Last edited by Justagai on Sun Jun 23, 2019 12:45 am, edited 5 times in total.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Hey Justagai, this is great I'll have to test it, I noticed there doesn't seem to be a readme file though would be great if you could add one at some point please
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- ual002
- Posts: 983
- Joined: Wed Sep 24, 2008 2:23 am
Nice, I'll have to check this out. Get back into the groove and see what I missed.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Nice find.
It works.
A quick question:
Why use a complex hook to change only one byte?
08 corresponds to 30 FPS.
04 corresponds to 60 FPS.
It works.
A quick question:
Why use a complex hook to change only one byte?
Code: Select all
At offset 10FBF8, replace 08 with 04.
04 corresponds to 60 FPS.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Huh.. look at that I can just add it to Xwa Exe Patcher
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
-
- Posts: 218
- Joined: Mon Dec 08, 2014 10:59 pm
I'll have a readme available soon.
I could have just set the byte at the binary offset but I wanted to plan ahead in case there is something else I needed to change. If you have a better method in mind then I am open to suggestions.JeremyaFr wrote: ↑Mon Dec 03, 2018 6:01 pmNice find.
It works.
A quick question:
Why use a complex hook to change only one byte?
08 corresponds to 30 FPS.Code: Select all
At offset 10FBF8, replace 08 with 04.
04 corresponds to 60 FPS.
As for the reason 08 = 30FPS and 04 = 60FPS...
Since the original X-wing, the way they use time units has been consistent.
They measure one second as "236 time units". They increment 8 time units per frame by default.
236/8 = 29FPS
236/4 = 59FPS
Any time units that are found should be divided by 236 to get the time in seconds.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
-
- Posts: 218
- Joined: Mon Dec 08, 2014 10:59 pm
Yes it is possible. I was a little afraid to do so at the time in case it was going to break something and I didn't have enough time to test.
I will change the frame limit in the hangar soon.
I will change the frame limit in the hangar soon.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
I propose that:
Code: Select all
At offset 10FBD5, replace 7D24 with EB24.
At offset 10FC8D, replace 0F8D with 90E9.
At offset 58005, replace 83FA08 with 83FA04.
At offset 58027, replace 83F908 with 83F904.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Offsets 1 and 2 disable the fps limit for inflight.
Offsets 3 and 4 set the fps limit to 60 fps in the hangar.
Offsets 3 and 4 set the fps limit to 60 fps in the hangar.
-
- Posts: 218
- Joined: Mon Dec 08, 2014 10:59 pm
Good finds.
I probably wouldn’t remove the FPS limit entirely until more testing can be done (especially for multiplayer).
But if you folks are willing to test out that stuff, that would be very helpful as I’ve got a lot of projects going on.
-
- Posts: 1170
- Joined: Mon Apr 05, 2004 11:01 pm
Awesome. I'll test it. I have some complex hangar layouts and this might definitely help. Thanks.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
To get full FPS, you can disable the time hook ( Hook_Time.dll ).
You can also apply this patch:
This will prevents the game from reloading the textures inflight.
To get full FPS, you can disable the time hook ( Hook_Time.dll ).
You can also apply this patch:
Code: Select all
; Disable FlushTextureCache inflight
At offset 499E0, replace E808D21400 with 9090909090.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've included the patch in the time hook.
Here is a preview version:
EDIT: link removed
See viewtopic.php?f=10&t=11338
Hello,
I've included the patch in the time hook.
Here is a preview version:
EDIT: link removed
See viewtopic.php?f=10&t=11338
Last edited by JeremyaFr on Fri Dec 14, 2018 5:16 pm, edited 3 times in total.
-
- Posts: 1170
- Joined: Mon Apr 05, 2004 11:01 pm
THank you Jeremy. Downloaded it but will test it when I get some free time. I"m now a dad of a little girl born this past Sunday evening. Will be a little while before I can get back to all things XWA related. Cheers!
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- DTM
- Posts: 2120
- Joined: Tue Apr 22, 2003 11:01 pm
- Contact:
Congratulations Bman!!!!! Welcome in a new beautiful world!
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've updated the above test hook.
It works better now.
I've updated the above test hook.
It works better now.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've included the 60 fps patch to the time hook.
Please redownload xwa_hook_time.zip
Hello,
I've included the 60 fps patch to the time hook.
Please redownload xwa_hook_time.zip
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
-
- Posts: 120
- Joined: Wed Jul 14, 2004 11:01 pm
This makes the game a joy to play! Nice work.
The only thing I've seen in my limited skirmish playing was that all the pilot and mission update voices have disappeared.
The only thing I've seen in my limited skirmish playing was that all the pilot and mission update voices have disappeared.
Blue Zoidberg: As for me I design mansions and then live in them. I'm lying! I'm an apalling failure!<BR>Red Zoidberg: Me too! A big fat one.<BR>-The Farnsworth Parabox, Futurama
-
- Posts: 1170
- Joined: Mon Apr 05, 2004 11:01 pm
Hi Jeremy, does this latest version also include the 60FPS fix for all interior hangars (pre-fllight)? If not, I can manually add to my patcher.xml file. Thanks.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 218
- Joined: Mon Dec 08, 2014 10:59 pm
UPDATE
Early Christmas present!
Added compatibility with steam version as well as all games in the X-Wing series.
Also included readme and 60FPS in hangar.
Early Christmas present!
Added compatibility with steam version as well as all games in the X-Wing series.
Also included readme and 60FPS in hangar.