besteon / Ironmon-Tracker

A Lua script for the Bizhawk/mGBA emulator compatible with Pokemon Fire Red, Leaf Green, Ruby, Sapphire, and Emerald that tracks relevant data for the IronMon challenge.
MIT License
125 stars 44 forks source link

[Bug]: Very poor performance on Linux BizHawk #445

Open GreenZanbato opened 7 months ago

GreenZanbato commented 7 months ago

Describe the bug

When running the tracker in the Linux version of BizHawk, the emulator can barely keep a normal fps, let alone fast forward. The FPS drops are constant but vary wildly, and streaming video elsewhere on the system exacerbates the issue. I assume it has something to do with the way the tracker draws graphics, since non-graphical lua files have never caused any issues for me. There are no errors in any of the logs. Notably, this happens on the NDS tracker as well.

Steps to Reproduce

  1. Run EmuHawkMono.sh and load an Emerald ROM.
  2. Launch tracker via lua console.
  3. (Optional) Stream video in a browser or Discord.

What tracker version are you using?

v8.4.2

What operating system are you using?

Linux (Pop OS)

What emulator(s) are you seeing the problem on?

Bizhawk 2.9

Relevant log output

No response

Additional Information

No response

UTDZac commented 7 months ago

Thanks for the report. I have a few questions to understand the issue better:

  1. Does this issue persist if you don't use the tracker at all? If so, it could be an issue with your Bizhawk setup
  2. If it only occurs with the Tracker open, can you check the Lua Console's text output at the times when its slow or sluggish, its possible its reporting some errors there.
  3. What setting is selected under Config > Display > Display Method? Mine is "Direct3D9"
  4. Can you share a screenshot of the entire settings page under Config > Customize > Advanced tab? If there is an option for Lua Core, try changing it to the other option and test.
GreenZanbato commented 7 months ago
  1. The issue only happens when the tracker is active.

  2. This is the only output on the console:

    Loading Ironmon Tracker for Bizhawk (Gen 3)
    Ironmon Tracker v8.4.2 successfully loaded
    > Tracker Notes: Loaded from last play session.
  3. The display method is OpenGL, since Direct3D9 is not supported in the Linux version.

  4. Here is the requested screenshot: image

(Unchecking "Run lua scripts when turboing" does allow turbo to hit a stable 550ish fps, but that doesn't really help when the game lags at normal speed or for fast forward.)