Hello,
did some more work...
Mainly I did some internal restructuring to make some of the further changes possible + for general code cleanup (I love replacing "public" by "private" in as many places as possible...).
Here are the changes so far:
Most of this doesn't mean anything to the normal user.- Cleaned up map resets; the data class EQMap does not call MapCon and RadarCon anymore, but event handlers are used.
- Removed all dependencies between MapCon and RadarCon. The latter stands on its own feet now.
- Restructured the power savings stuff a bit; it's a global flag now which can be used by other code than the map painting.
- Per default, the radar is a floating window now instead of docked. It cannot be docked at all, at the moment. This can be switched back to the previous behaviour by setting radarDisassociated=false in the config file (or Slarti can make an option in the dialog, but I think nobody would use the previous behaviour ).
- A new DrawOption parameter called PaintToScreen has been added; if this is true (default), then the map display is updated; if it is false, then the map display isn't updated at all (not even cleared). This doesn't do anything yet - Slarti has to add an option to the dialog first. This cuts down 10-15% of CPU on my screen (yes, clearing the background buffer and blitting it to the screen is expensive for me).
There is, however, one really notable change in all of this:
You can now minimize the map window, and the radar will stay up. This immediately cuts down CPU usage to roughly nothing. Especially, the ugly flickering (at least on Win2K) of the map update (on my screen, *everything* flickers, even the desktop!) is gone for good.
Have fun,
42!