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

[BUG] Local games are usually sped up in the first few seconds #2

Open
Tholp1 opened this issue Jun 22, 2024 · 2 comments
Open

[BUG] Local games are usually sped up in the first few seconds #2

Tholp1 opened this issue Jun 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Tholp1
Copy link
Member

Tholp1 commented Jun 22, 2024

Probably because we turn host_thread_mode on to combat the issue of constant speed up. Maybe set that convar later on after the map loads?

@Tholp1 Tholp1 added the bug Something isn't working label Jun 22, 2024
@Tholp1 Tholp1 self-assigned this Jun 22, 2024
@Tholp1
Copy link
Member Author

Tholp1 commented Jun 25, 2024

Not sure exactly what the criteria for this to trigger. in DMCR it happens at map load and when the first player becomes active

@Tholp1
Copy link
Member Author

Tholp1 commented Jul 2, 2024

The three things ive tried are

  1. Turn on host_thread_mode after a few seconds of there being an active player (!C_BasePlayer::IsObserver())
    This causes a second long stutter, not great.

  2. Set host_framerate to fps_max for the few seconds theres an active player. This works fine if the computer running the game is actually hitting the fps limit. On worse hardware the game is slowed to a fraction of the speed it should be ( fps / fps_max ). Changing host_framerate to match the fps of the last frame doesn't really do anything, only adjusting it later could maybe work but i havent attempted yet. Using host_framerate also would require an engine patch to use without sv_cheats 1.

  3. Set host_sleep to ~8 for the first few seconds of there being an active player. Works but wrecks the hosts frames until its off again

Need to test more with option 2 and 3 to see which would work best

@Tholp1 Tholp1 changed the title Local games are usually sped up in the first few seconds [BUG] Local games are usually sped up in the first few seconds Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant