-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FPS drop when targeting large craft with 60FPS #5
Comments
I used xwahacker (not yet release version) to patch the FPS limit, my vsync limit of 60 fps is reached consistently on my system. |
Might also help, and likely easier to test: how does resolution influence things? Both desktop resolution and resolution set in-game or with XWAHacker? |
I made a quick hack with which my i3-6006U laptop (integrated graphics only) can render 1080p at 50 fps or more. |
Resolution is set with xwahacker and desktop resolution is the same. I'm doing some additional tests with 1.5.6 and 1.5.1 and it seems the issue doesn't pop up anymore... I did do a lot of changes to my XWA install however including the pilot config so I'm trying to backtrack and see what was causing it in the first place. I will also test the version you uploaded and get a diag file if I can reproduce the issue again. |
Here is my dxdiag. I'm starting to believe that it is my computer. Though I have a Intel Core i7 CPU with a NVIDIA GeForce GTX 770, an issue that my computer sometimes has is that it can get hot and when that happens, the CPU clock speed scales back. If I tested Jeremy's ddraw under cool conditions and yours under hot conditions, it will skew the results. I don't recall the temperature the day when I made the tests. So I think my computer is to blame for this. I apologize for not taking this into account in the first place. If the issue does pop up again, I will take account of these variables and let you know. Edit: What made me think there was some sort of issue was the fact that it would stay exactly 50fps instead of fluctuating, but until I receive the issue again I’m going to assume the issue is with my computer. |
Ok. I will drop my optimization for now, but if someone finds a nice case where it helps (e.g. very high resolutions, 120 Hz with a powerful GPU but weak CPU) and can confirm no relevant negative effects please post here and I might pick it up again. |
In |
I was worried there might be issues because the user might not have set the resolution with XWAHacker, or have set it to something other than the screen resolution (e.g. to avoid the height > 1200 crash). |
I agree. I've changed my code. It didn't work well with cutscenes. |
It seems that 16-bpp textures are not supported on feature level 10.0 on Windows 7. They are supported on feature level 9.1. See http://www.xwaupgrade.com/phpBB3/viewtopic.php?p=156674#p156674 |
What I can see from the documentation you need Direct3D 11.1 hardware for 565 support. |
I've updated my version to use 16-bpp textures when available. |
EDIT: Please ignore, I'll add a new comment with updated information. |
(btw my code contains a SSE optimization of that "replace all black by 0x2000" loop if you aren't aware) |
It might not matter for your code as you mostly disable blending, but if you look at the 16 bit -> 32-bit conversion code and also the alpha check in the texture, you see we ended up with a system where alpha 1.0 means "transparent" and 0.0 means "opaque". |
The FPS drop only occurs when using 60FPS. I am not using Jeremy's time hook but my own 60FPS hook. 30FPS mode would be fine of course. The issue only occurs when targeting something that is a container or larger.
I have RefreshLimit set to off and PresentSleepTime is not used.
I have uploaded a CPU profile of the issue. https://1drv.ms/u/s!AoEpIrw6LOkUjbcXobFFREagGK7xyQ
The text was updated successfully, but these errors were encountered: