RaphiMC / ImmediatelyFast

Speed up immediate mode rendering in Minecraft
https://modrinth.com/mod/immediatelyfast
GNU Lesser General Public License v3.0
288 stars 21 forks source link

Heavy FPS drops when rendering vanilla maps #236

Closed MissPotato closed 3 months ago

MissPotato commented 3 months ago

Java version 21 IF version 1.2.18 Fabric Loader 0.15.11 OS Linux 6.10.0-rc4-1-MANJARO

No other mods are enabled. Attached is a zip containing the map, it is just a normal 1:16 map. The slowdown happens both in an item frame and in player's hand.

https://mclo.gs/vMyV8rk Map.zip Screenshot from 2024-06-21 20-50-02

RaphiMC commented 3 months ago

Can't replicate the issue even with the map you uploaded. Could you upload a before/after screenshot of the F3 menu with vanilla and IF

MissPotato commented 3 months ago

2024-06-22_10 47 23 here is the map without IF

RaphiMC commented 3 months ago

Install the spark mod (https://modrinth.com/mod/spark) and run /sparkc profiler start --thread * --timeout 15 and wait for 15 seconds. Send the generated link on github

MissPotato commented 3 months ago

Nothing has changed on my system, but it is now suddenly no longer happening. Despite happening every single time for the last couple of days. If it happens again, I'll run the profiler and provide the generated link.

RaphiMC commented 3 months ago

Thanks, I will close the issue for now. Just reopen it if it happens again

MissPotato commented 3 months ago

https://spark.lucko.me/dC5xagVEHB

Edit: I seem to be unable to open this issue back up, but here is a profiler of it happening.

RaphiMC commented 3 months ago

The profiler result doesn't show any indication of IF causing a slowdown, but rather operating system factors taking up a lot of time. You can disable the map rendering optimization in the config file (.minecraft/config/immediatelyfast.json) because I won't have the time to investigate whats at fault here, especially since this is the first report of the map optimization causing a slowdown

MissPotato commented 3 months ago

I'm thinking X11 (X11 is the windowing software aka x.org)and IF just don't play well together. Given the other issue I had talked about in discord with the weird frame times, while lowing the polling rate helped some, the issue is still present. X11 also seems to spike up when moving the mouse with IF installed.