Skip to content
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

stutter on controller camera pan #602

Open
rampancy7 opened this issue Aug 4, 2024 · 4 comments
Open

stutter on controller camera pan #602

rampancy7 opened this issue Aug 4, 2024 · 4 comments

Comments

@rampancy7
Copy link

Hi. First off just want to say thanks for your work, I am a huge fan of the project. I am also a huge fan of playing with a controller and not having to use the flawed bfg edition.

I am playing on an rtx 3090 and an i7, 32gb ram, everything updated. My controller is an xbox elite 2 connected via usb, not bluetooth.

There is a weird stutter when I pan the camera with my controller. I am getting a consistent, smooth 60 fps. I dont see the same when moving forward or backward, or when using the mouse, although due to the nature of mouselook it would be harder to detect.

Is there a polling rate or something in the controller implementation that would be causing this or is this maybe somehow something to do with frame times? I have tried everything on the nvidia side; disabling gsync, different vsync settings, setting an fps limit, triple buffering, etc. I am unable to aleviate the issue, even when i turn off aa, etc. I dont see how it could be a horsepower issue.

Along those lines, I am hnable to get the game running above 60 fps, and dsr resolutions are not showing up in the options. it would be great if those worked as well, but I would settle for a smooth 60 in the interest of time!

Thanks again for an awesome project.

@DanielGibson
Copy link
Member

At least on Linux with my xbox360 pad I couldn't reproduce this.

Is there a polling rate or something in the controller implementation that would be causing this

I don't think so - dhewm3 gets the current controller state from SDL each frame, and when you're just turning around it should get roughly the same value as long as you keep the stick in the same position and thus turn smoothly.

Along those lines, I am hnable to get the game running above 60 fps

Doom3 doesn't support more than 60fps. dhewm3 is trying to change this, see #585, but that code is not in the current release as it's still buggy (because Doom3 really was never meant to be ran with more than 60fps, fixing all the little and big bugs that appear isn't easy)

@vlad54rus
Copy link

Stuttering 2-3 times a second? Doom 3 runs at 62.5 Hz internally, running it Vsynced to a 60 or 120 Hz display causes micro stutter due to tick skipping.

@vanfanel
Copy link

vanfanel commented Sep 26, 2024

Stuttering 2-3 times a second? Doom 3 runs at 62.5 Hz internally, running it Vsynced to a 60 or 120 Hz display causes micro stutter due to tick skipping.

I was about to open a new issue based on this 2-3 times a second stuttering the game has on my 60 Hz default video mode on GNU/Linux+Wayland.
Luckily, I read your comment and I found out about the internal 62.5 internal framerate, so I can use wlr-randr to create a 62.5 Hz video mode on the fly and the game runs totally smooth here with that mode.
But two question come up in my mind:
Is the internal framerate exactly 62.5 Hz, or something like 62.5xxxx?
Is there a way to modify that via config files or by altering the sources?

@vanfanel
Copy link

Ah, it seems that setting r_fixedTic to 1 will make the game sync on vsync instead of that 62.5 Hz thing that uses by default. Good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants