60FPS Inflight hook

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Re: 60FPS Inflight hook

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sat Jun 22, 2019 8:47 pm

I'm seeing more than 60fps now, even with the VR mod working. This is awesome!!! I had to install the latest hook_time from here:

http://www.xwaupgrade.com/phpBB3008/vie ... 10&t=11338

I also had to disable vsync (which the VR mod already does) and lower down the resolution a bit (to 1920x1080). Thanks Jeremy!

Justagai
Cadet 1st Class
Posts: 218
Joined: Mon Dec 08, 2014 10:59 pm

Post by Justagai » Sat Jun 22, 2019 8:49 pm

Darksaber wrote:
Sat Jun 22, 2019 8:41 pm
So Justagai, will you have to alter your tour hook to remove the FPS stuff and leave it to Jeremy's time hook to sort that out?
There isn't any FPS stuff in my tour hook so that shouldn't be a problem.

EDIT: Unless you are referring to the Update rate, in which case that is different and I've left that at 59 as well as my FPS hook for multiplayer syncing reasons. Though I might test out 120FPS and see how that goes in multiplayer one of these days and thus update the update rate range should it go well. But just to clarify, server update rate and FPS are separate things.

Glad to hear everything is good blue_max!

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Jun 22, 2019 8:56 pm

Ah sorry, it was with Jeremy saying
There is a conflict because Justagai's hook limits the fps to 59 (236/4) where mine limits the fps to 118 (236/2).
I automatically thought that the same coding was in each hook causing the conflict

Sorry again, I didn't mean to accuse you of anything :2thumbs:
“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

Justagai
Cadet 1st Class
Posts: 218
Joined: Mon Dec 08, 2014 10:59 pm

Post by Justagai » Sat Jun 22, 2019 9:02 pm

Nah, you're fine :D

User avatar
JeremyaFr
XWAU Member
Posts: 3921
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jun 22, 2019 9:04 pm

I think that Justagai's 60 FPS hook is no longer needed for XWA.
The offsets contained in Justagai's hook are included in the time hook with better values.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Jun 22, 2019 9:14 pm

Nah never had that installed, I thought the 60 FPS was included in his Multiplayer Tour Hook for some reason lol, pay no attention to me I'm loosing it :irre:
“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

Justagai
Cadet 1st Class
Posts: 218
Joined: Mon Dec 08, 2014 10:59 pm

Post by Justagai » Sat Jun 22, 2019 11:30 pm

JeremyaFr wrote:
Sat Jun 22, 2019 9:04 pm
I think that Justagai's 60 FPS hook is no longer needed for XWA.
The offsets contained in Justagai's hook are included in the time hook with better values.
For XWAUP/DSUCP singleplayer, of course. There is no doubt.

Although for Linux users they do require my 60FPS hook since there are timing issues with the time hook as per the Linux guide posted on this forum.

For multiplayer I still have to run tests on the time hook to ensure there will be no issues.

EDIT: I've added a note to the first post to prevent confusion.

spas79
Recruit
Posts: 8
Joined: Sun Mar 01, 2020 10:46 am

Post by spas79 » Mon Mar 02, 2020 9:34 pm

Justagai wrote:
Sat Jun 22, 2019 11:30 pm
JeremyaFr wrote:
Sat Jun 22, 2019 9:04 pm
I think that Justagai's 60 FPS hook is no longer needed for XWA.
The offsets contained in Justagai's hook are included in the time hook with better values.
For XWAUP/DSUCP singleplayer, of course. There is no doubt.

Although for Linux users they do require my 60FPS hook since there are timing issues with the time hook as per the Linux guide posted on this forum.

For multiplayer I still have to run tests on the time hook to ensure there will be no issues.

EDIT: I've added a note to the first post to prevent confusion.
So how do we manipulate that to push it over 60fps. At the moment I don't seem to be able to go over that.

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Tue Mar 03, 2020 12:51 am

spas79 wrote:
Mon Mar 02, 2020 9:34 pm
So how do we manipulate that to push it over 60fps.
Use Jeremy's time hook (hook_time.dll). I believe that removes the FPS restriction completely. However, you may need to disable the 60FPS hook and I don't know if that'll break the game under Linux or Multiplayer.

Also, use Jeremy's latest ddraw ( 1.3.8 ) along with the xwa_hook_d3d -- that increases the performance too. See this thread: https://xwaupgrade.com/phpBB3/viewtopic ... 10&t=12424

spas79
Recruit
Posts: 8
Joined: Sun Mar 01, 2020 10:46 am

Post by spas79 » Tue Mar 03, 2020 6:20 am

Thanks, that did the trick. Disabling Vsync in ddraw.cfg and installing the two files brought my fps up to the 200s (240 at the start of mission 1, needs more testing).
This at 1920x1080, on i7 9700k @5.1GHz, 2080ti FE, 32 GB RAM

Post Reply