Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

Skip drawing frame to improve performance

Open TaranDahl opened this issue 4 months ago • 5 comments

Skip drawing frame to improve performance

  • Now you can make the game skip the drawing by 1 frame every SkipFrameDelay when the frame rate is lower than the vanilla defined DetailMinFrameRateNormal. This helps alleviate the frame rate drop caused by drawing.
    • This logic only takes effect when SkipFrameDelay is greater than or equal to 2.

In RA2MD.INI:

[Phobos]
SkipFrameDelay=0  ; integer

TaranDahl avatar Aug 04 '25 15:08 TaranDahl

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

github-actions[bot] avatar Aug 04 '25 15:08 github-actions[bot]

Most interesting is how the frame skip will behave in multiplayer.

Metadorius avatar Aug 05 '25 21:08 Metadorius

Most interesting is how the frame skip will behave in multiplayer.

My tester said it works fine in MP.

TaranDahl avatar Aug 06 '25 06:08 TaranDahl

What about to add feature to the yr-spawner and make a public test from yr beta branch?

MahBoiDeveloper avatar Aug 12 '25 11:08 MahBoiDeveloper

This triggers alongside detail reduction, should add a separate key to enable this instead of relying on DetailMinFrameRateNormal - most mods set this to 0 as per Modenc recommendation, maybe FrameSkipThreshold? e.g. [AudioVisual] FrameSkipThreshold=36

edit: can confirm MP safe

ayylmaoRotE avatar Sep 15 '25 12:09 ayylmaoRotE