Duke4.net Forums: [Fixed] Usage of the inittimer CON command to slow down the game speed results in choppy frames (as of r8533) - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Fixed] Usage of the inittimer CON command to slow down the game speed results in choppy frames (as of r8533)

#1

This particular problem is present in r8533, and occurs since r8050. Here it is visualized:

r8049: https://streamable.com/6gujg
r8050: https://streamable.com/5ty1e

In both cases I used the CON command `inittimer 30` to slow down the game speed.
In r8049, it was possible to look around smoothly, while starting from r8050, this is remarkably more choppy, almost like it simulates a massive drop in framerate.
Note however that in both videos, the reported framerate was consistently at 120 FPS.

The commit in question appears to have changed something about the game clock, involving interpolation, and is rather lengthy:

Quote

Change some clocks to support sub-tick precision using a new class, ClockTicks.
Using that higher precision, interpolate at a higher granularity.
Further, truncate the target interpolation time to vertical blank boundaries to avoid producing temporal artifacts.
Fix issues caused by interpolation calculations being handled differently in multiple places (and fix cases where smoothratios were being thrown away only to be redone without checking all proper conditions).
Ensure ClockTicks changes do not break other targets (EKenBuild, VoidSW), but note any interpolation there is not similarly updated.


I used the CON file included in the attachment to reproduce this problem (as I am not aware of any direct console command that reduces the game speed).
Simply load the CON file and type the command `setvar timervar 30` into the console, which will trigger the gamespeed slowdown.

Attached File  inittimer.zip (1.98K)
Number of downloads: 100

There's a number of mods that use this feature, most importantly DukeHOT, which is entirely based around it.
2

User is offline   pogokeen 

  • EDuke32 Developer

#2

Thanks for the detailed report.

I've pushed a fix for this issue in r8534. When you have a chance, please try this new version and let me know if the issue is fixed for you.
2

#3

Working properly again on my end with r8534, thanks for the quick fix!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options