Magic Maps cause 2 to 0 FPS when not selected an in hotbar or player inventory.
ScytheIronclaw opened this issue ยท 4 comments
Forge version: 14.23.0.2512
Twilight Forest version: 3.1.128
Link to crash log: N/A
Steps to reproduce:
- Craft or Spawn in a Filled Magic Map, not the blank one.
- Deselect it from the hotbar or place it into the player inventory.
What I expected to happen:
The game to run normally and not consistently run at 0 - 2 FPS
What happened instead:
The game struggles to maintain 2 FPS until the Magic Map is back in the active slot on the Hotbar, Placed in an item frame, thrown on the ground, or tossed into lava due to frustration.
There is no sort of error in the console log aside from the typical generic low TPS warning:
"Can't keep up, has the system time changed or is the server overlaoded?"
Also the Magic Maps no longer show a player Icon on them which makes it difficult to use them as intended.
*When the magic map is in the active hot-bar slot there is still a noticeable affect on FPS.
Screenshot showing control FPS - No magic map in inventory or actively selected.
Screenshot showing FPS impact when Magic Map is selected
Screenshot showing severe FPS impact when Magic Map is deselected but still in hotbar/player inventory
additionally, if you could generate a profiling report that would be great:
Server:
- fresh TF dimension, let it settle completely
/debug start
- open map, let it sit for 30-60s
/debug stop
- attach the newest file generated in the
debug/
folder of your instance
Client:
Hit Shift+F3 to bring up the pie chart and make notes of what sections take up the pie the most. You can drill down into subsections using the number keys.
Simply holding a Magic Map leads to a gradual increase in scheduledExecutables (unspecified). This performance hit remains for each Magic Map in inventory, and was additive for creative-cloned copies of the same magic map.
Restarting the world gets rid of some of the accrued performance loss; greater amounts of feature data on a map seem to increase the immediate impact of having a map in inventory as well as the speed at which performance is lost while holding the map.
As for running the debug profiler, Connection/Unspecified takes up around 70% while a Magic Map is held. When not held (but still in inventory), the debug returns normal results, in spite of the maintained hit to scheduledExecutables.
It might be worth mentioning that actively holding the map didn't fix/improve any poor performance in my testing (with TF build 171 in isolation).