Closed philazzi44 closed 10 years ago
It's likely UpdateNewFogImage(FogUpdate) which gets called every iteration. We can probably queue up the Fog Updates and only repaint them every so often to have the same effect.
Fixed by getting rid of the NewFog image altogether in favor of just drawing the Polygon's points on the fly.
The red area is a little more staggered than I feel it should be, considering we can easily scroll the map which should be causing the same number of repaints. That means something the Mouse Move event is doing when you're drawing a fog area is slowing things down.