fix win32 high cpu occupancy rate

fix for issue #8477