Eidolon
7c00cea1fc
Add per-split player view resets
2022-05-05 20:11:37 -05:00
Eidolon
d511857675
Reset view interp in preticker
2022-05-05 19:43:55 -05:00
Eidolon
73930c655b
Run UpdateMobjInterpolators in preticker
2022-05-05 19:27:51 -05:00
Eidolon
1920dba082
Run UpdateLevelInterpolators in preticker
...
Fixes KartKrew/Kart-Public#10
2022-05-05 18:51:49 -05:00
Sally Coolatta
4d18329946
Revert to before screenUpdate boolean was added
...
Was done this way for the sake of an older version of uncapped's timing; now that the new timing is much better, I decided it should remain as close to pre-uncapped as it can be.
2022-05-05 15:07:27 -05:00
Eidolon
738b0ed2e3
Merge branch 'uncapped-zofs' into 'uncappedrevengeance'
...
Add +zofs to normal gravity mobjs (fixes signpost sparkles etc)
See merge request ShaderWraith/SRB2!3
2022-05-05 19:50:46 +00:00
katsy
c2e1b1be54
Restore deleted zofs (fixes signpost sparkles etc)
2022-05-05 13:18:01 -05:00
Eidolon
e3fd3dfa65
Only play emerald hunt sounds on new tics
2022-05-04 20:40:45 -05:00
Sally Coolatta
40c2f66a5a
Move screenshot code before timing
2022-05-04 20:02:36 -05:00
Eidolon
bd73256390
Fix Marathon Mode menu for uncapped
2022-05-03 18:18:08 -05:00
Eidolon
1c11ddd6ae
Only check VERTICALFLIP for old_z calc
2022-05-03 15:23:00 -05:00
Eidolon
7ec0420ce6
Adjust spawned mobj z by gravity inversion
2022-05-03 15:07:35 -05:00
Eidolon
805941a98f
Merge public next into uncappedrevengeance
...
This is to capture the UDMF merges and make the later code review
easier.
2022-05-03 14:45:14 -05:00
Nev3r
0953acca15
Merge branch 'udmf-linedef-executors' into 'next'
...
UDMF: Linedef executors
See merge request STJr/SRB2!1625
2022-05-01 07:45:43 +00:00
Nev3r
997f799383
Merge branch 'udmf-full' into 'next'
...
UDMF: The whole thing
See merge request STJr/SRB2!1714
2022-05-01 07:36:12 +00:00
Eidolon
f0d7d8467f
Refactor timing code even more
...
System layer is greatly simplified and framecap
logic has been moved internally. I_Sleep now
takes a sleep duration and I_SleepDuration
generically implements a precise sleep with spin
loop.
2022-05-01 00:32:46 -05:00
Eidolon
7d7564b7f9
Disable sprite offset interpolation (for now)
2022-04-30 21:56:42 -05:00
Eidolon
48d8c83540
Ensure view is not interpolated on first frame
2022-04-30 19:10:07 -05:00
Eidolon
c0865e4faa
Ensure mobj interpolators reset on level load
2022-04-30 17:59:32 -05:00
Eidolon
e79654a33a
Completely refactor timing system
...
Time is now tracked internally in the game using I_GetPreciseTime
and I_UpdateTime. I_Time now pulls from this internal timer. The
system code no longer needs to keep track of time itself.
This significantly improves frame and tic timing in interp mode,
resulting in a much smoother image with essentially no judder at
any framerate.
2022-04-30 16:33:23 -05:00
Eidolon
dcbe929baa
Make renderisnewtic is false between tics
...
I know what I'm doing! I swear
2022-04-30 13:53:56 -05:00
Eidolon
a41d042812
Rename drawerlib deltaTime to getDeltaTime
2022-04-30 01:57:46 -05:00
Eidolon
82310e0ae2
Add Lua HUD drawlists
...
Buffers draw calls between tics to ensure hooks
run at the originally intended rate.
2022-04-30 01:55:10 -05:00
Eidolon
56261d3e1e
Fix offset copies for SpawnMobjFromMobj
...
THANKS SAL
2022-04-29 17:19:09 -05:00
Eidolon
1259f1be40
Interpolate spritescale/offset x/y
2022-04-29 14:21:30 -05:00
Eidolon
8f43b5afd0
Fix Mario block item placement
2022-04-28 22:32:35 -05:00
Eidolon
42ebf163e6
Don't interpolate mobj state if frac = 1.0
2022-04-28 21:07:06 -05:00
Sally Coolatta
7c41564362
Fix multiplayer character select
2022-04-28 20:44:22 -05:00
Eidolon
5d4f7f2ad2
Copy interp state in P_SpawnMobjFromMobj
2022-04-28 20:39:37 -05:00
Eidolon
1aebf41e82
Interp shadow scales
2022-04-28 20:14:04 -05:00
Eidolon
687d98eb4a
Fix interp scale crash for hires sprites
2022-04-28 20:07:07 -05:00
Eidolon
50b0c29db9
Disable angle interp on fresh mobjs
2022-04-28 18:46:02 -05:00
Eidolon
34eebcb4b8
Reset interp scale when Lua sets .scale
2022-04-28 18:36:10 -05:00
Eidolon
0f2e200fa1
Merge branch 'worms' into 'uncappedrevengeance'
...
Fix interp scaling crashing software
See merge request ShaderWraith/SRB2!2
2022-04-28 23:16:48 +00:00
katsy
5a7a63c2cc
Fix interp scaling crashing software
2022-04-28 17:21:45 -05:00
Sally Coolatta
d2282c98cc
Precalculate refresh rate
...
Slower PCs can have issue querying mode over and over. This might kinda suck for windowed mode if you have different refresh rate displays but oh well
2022-04-27 21:47:19 -05:00
Eidolon
51553e7f75
Interpolate mobj scale
2022-04-27 21:39:47 -05:00
Sally Coolatta
f6c1e49b27
Fix boss1 laser in interp
2022-04-27 21:07:55 -05:00
Sally Coolatta
71ee468bf3
Fix cutscenes in interp
2022-04-27 20:41:38 -05:00
Eidolon
813ed81a37
Reset old_z in MT_LOCKON think
...
Fixes interpolation artifacting due to spawn pos.
2022-04-27 19:52:11 -05:00
Sally Coolatta
f66cedf1fc
Force interpolation when timescale != 1.0
2022-04-27 18:37:45 -05:00
Sally Coolatta
a76968c6d9
Enable timescale outside of DEVELOP builds
...
It has NETVAR, so it should be fine -- put an end to useful debugging features excluded in multiplayer!
2022-04-27 18:37:45 -05:00
Sally Coolatta
bb6d4d10b5
Add timescale cvar
...
Slow the game down to debug animations / interpolation problems! Speed it up if you need to get somewhere quickly while mapping!
2022-04-27 18:37:45 -05:00
Sally Coolatta
f2a19b29d9
Put interpdebug stuff in perfstats instead
2022-04-27 18:37:45 -05:00
Sally Coolatta
c83d1be21f
Add interpdebug
2022-04-27 18:37:45 -05:00
Eidolon
0503c853cc
Reset Metal fume interp state on appear
2022-04-27 18:19:00 -05:00
Eidolon
c3923adc3f
Make Lua TeleportMove call MoveOrigin
2022-04-27 17:08:40 -05:00
Sally Coolatta
eb6b1f375a
Allow dedicated to use precise sleep timing again
...
Instead of only using one old sleep, just enforce framerate cap to match TICRATE.
2022-04-27 16:33:05 -05:00
Sally Coolatta
c3340959de
Fix I_FrameCapSleep not respecting cpusleep
...
Jonathan Joestar bruh
2022-04-27 16:26:41 -05:00
Sally Coolatta
9b4e485686
Fix frame pacing when game lags behind
...
The frame timestamp should've been made at the start of the frame, not the end.
2022-04-27 16:06:03 -05:00