Not quite a bug, as it does work as it is, but could definitely be improved... I used 4.0, but after a quick test in the editor, it seems the problem is in 5.0 too, and probably 3.0 as well.
My DROD PC isn't the newest or the fastest, and while playing GatEB I had noticeably poor performance in the Skondusk Marshes, amongst other places. Partially this was due to an issue with platforms (which has already been fixed), but the weather effects also contribute to it.
To easiest see the problem I've identified, create a room in the editor and enable Cloud Shadows in the weather settings, and test the room.
I get ~45-50 FPS and ~20-25% CPU usage. Movement feels "
rough"
.
I recompiled with the current floating-point calculations changed to a lookup from a precomputed table.
I now get 60+ FPS and ~5-10% CPU usage. Movement feels "
smooth"
.
I changed CBitmapManager::ShadeWithSurfaceMask (no-shadow-mask case). I haven't tried with anything else, but I'm guessing similar simple changes could improve other similar routines.
[Last edited by Moo at 06-23-2014 11:22 PM]