mholtkamp / octave

A 3D game engine for GameCube, Wii, 3DS, Windows, Linux, and Android.
MIT License
78 stars 6 forks source link

Log.Debug causes massive slowdown on Wii #18

Open radish64 opened 2 months ago

radish64 commented 2 months ago

Calling Log.Debug() inside a Tick() function takes approximately 11 ms per tick on Wii, causing massive slowdown. This does not occur in Dolphin, only on real Wii hardware.

radish64 commented 2 months ago

This also happens with LogError(), including the one found in line 103 of Engine/Source/Engine/Nodes/3D/TextMesh3d.cpp This means every TextMesh3d node will waste 1 ms per tick on Wii. Removing the LogError fixes the issue for the time being.

mholtkamp commented 2 months ago

I'm not sure if I'll get around to optimizing logging on GCN/Wii any time soon, but there is Log.Enable() Lua function you can call to disable logging.

Also thanks for pointing out the LogError() in TextMesh3d.cpp. I just pushed a commit to remove it.