bugfix(fps): Fix crashes and ww3d updates in tools#1688
Merged
Conversation
1 task
xezon
force-pushed
the
xezon/fix-tools-render
branch
from
October 11, 2025 19:56
85c5a94 to
7a2bac8
Compare
Author
|
This will fail compile in Generals until replicated. |
Author
|
Maybe rename GameTimer to FramePacer. |
Skyaero42
approved these changes
Oct 14, 2025
Skyaero42
left a comment
There was a problem hiding this comment.
Code looks good.
With regards to naming I would go for RenderClock. My arguments:
- The use of
framecan be confusing as the logic steps also refer to frames Pacerindicates more of a control-task which I don't find fitting- Timer is a consumer of time (usually with start/stop/reset)
- Clock provides time, which is what the GameTimer currently does.
Author
|
I don't like RenderClock. Because it is not Rendering specific but also is used for logic pacing. It intents to provide all functions to properly control the pacing of render and logic frames. |
xezon
force-pushed
the
xezon/fix-tools-render
branch
from
October 14, 2025 16:58
7a2bac8 to
00b8d39
Compare
Author
|
GameTimer renamed to FramePacer. Replicated in Generals with conflicts. Tested and worked in Generals Game Client and Generals World Builder. |
xezon
added a commit
that referenced
this pull request
Oct 14, 2025
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Nov 10, 2025
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Nov 10, 2025
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Feb 23, 2026
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge with Rebase
This change fixes crashing when launching the World Builder. The problem is the tools do not use the
GameEngineclass and therefore have no access to the new game time features.The following tools use WW3D:
To accomodate the new game time features in tools, most game time related code in
GameEngineclass has been moved to a newGameTimerclass. The logic is now reused in WorldBuilder and GUIEdit so in principle these should have the same capabilities to render WW3D steps independent of frame rate.W3DView is not using the GameEngine module(!) at all (remember it is a Renegade tool) and therefore does not even have access to the new
GameTimerclass. But it seems it does not need it. W3DView animations look ok.The simpler change here would have been to add a bunch of null checks for
GameEnginebut that would have been a hack.TODO