[Any version] [SW] Pausing/Resuming game is not ideal

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

[Any version] [SW] Pausing/Resuming game is not ideal

Post by sinisterseed »

Old but raising the awareness as usual ;) .

In SW pausing the game does not seem to pause all events correctly, and enemies can either be still observed moving or be found in a different position/state after unpausing the game. Very easily noticed on the ninth map (levelwarp 9 and keep the console active while watching the ninjas).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by Graf Zahl »

Not much I can do right now. The way these games loop their game ticker is very, very problematic because those loops cannot be stopped properly. The pause function in particular is the biggest one because unlike pausing for the menu in single player games this needs to be network safe and apparently it isn't.

Ideally it should be done like Doom, i.e. driving the game logic from the outside and running the game ticker only when deemed appropriate. But that's a major refactoring because all those games use the same approach and use local loops everywhere. It's probably unavoidable to change this but be prepated for something that may take multiple weeks.
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by sinisterseed »

Graf Zahl wrote:Not much I can do right now. The way these games loop their game ticker is very, very problematic because those loops cannot be stopped properly. The pause function in particular is the biggest one because unlike pausing for the menu in single player games this needs to be network safe and apparently it isn't.

Ideally it should be done like Doom, i.e. driving the game logic from the outside and running the game ticker only when deemed appropriate. But that's a major refactoring because all those games use the same approach and use local loops everywhere. It's probably unavoidable to change this but be prepated for something that may take multiple weeks.
Oh wow, so we're in for a rough ride then. I really don't understand why these games rely on network code for so many SP-centered things.

And that probably means a swarm of issues along with it. We're gonna have so much fun.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by Graf Zahl »

They don't but since pausing needs to be broadcast it cannot be done by simply halting the play loop. Even in Doom the pause event gets sent across the network.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by Graf Zahl »

This can no longer be reproduced with all the changes to the input code.
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by sinisterseed »

lowskill. wrote:In SW pausing the game does not seem to pause all events correctly, and enemies can either be still observed moving or be found in a different position/state after unpausing the game. Very easily noticed on the ninth map (levelwarp 9 and keep the console active while watching the ninjas).
Apparently this is "unfixed" now, I can still randomly see ninjas "moving" while pausing the game sometimes.
User avatar
mjr4077au
Posts: 834
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by mjr4077au »

Do they just move on the spot or are they actually moving to different positions? It was unfixed until two days ago, so if you're on a slightly older build I'd pull and compile again 😉
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [Any version] [SW] Pausing/Resuming game is not ideal

Post by sinisterseed »

mjr4077au wrote:Do they just move on the spot or are they actually moving to different positions? It was unfixed until two days ago, so if you're on a slightly older build I'd pull and compile again 😉
It's a build from today's master, cca. 4-5 hours old :p .

They seem to move on the spot, yes, depending on the state they were in when you paused the game.
Post Reply

Return to “Closed Bugs [Raze]”