ikemen-engine / Ikemen-GO

An open-source fighting game engine that supports MUGEN resources.
https://ikemen-engine.github.io
Other
747 stars 126 forks source link

Command line performance difference #2052

Open potsmugen opened 1 month ago

potsmugen commented 1 month ago

Describe the bug

Found an oddly specific thing that is probably worth pointing out. If you spam sprite fonts on screen, performance when running from command line is significantly better than when running Ikemen normally.

This does not seem to happen when you spam explods instead.

To Reproduce

  1. Add this code to KFM:
    [State -2, Debug]
    type = text
    trigger1 = 1
    text = "Testing 0123456789"
    localcoord = 320, 240
    pos = random % 320, random % 200
    font = F 3; needs to be a sprite font
    align = 0
    removetime = 50
  2. Pick KFM vs KFM in Stage1 normally
  3. Pick KFM vs KFM in Stage1 from command line

Expected behavior

Closer FPS between both

Screenshots / Video

Command line: 13fps ikemen003

No command line: 9fps ikemen000

In another test I got 50 vs 35fps.

Engine Version (or source code date)

02/10/2024

Operating system

Windows

Extra context or search terms

No response