ozkriff / zoc

⬡ Zone of Control is a hexagonal turn-based strategy game written in Rust. [DISCONTINUED]
https://ozkriff.itch.io/zoc
Apache License 2.0
379 stars 31 forks source link

Add sleep to main thread to reduce excess load #261

Closed beatgammit closed 7 years ago

beatgammit commented 7 years ago

Fix for #235, and I used std::time as per #234. I'm not sure if you'd prefer this to happen within Visualizer or have it be more intelligent (e.g. skip drawing, but still listen for events if the last computation took too long).

This change makes my computer whine less :)

ozkriff commented 7 years ago

Thanks! :)

I'm not sure if you'd prefer this to happen within Visualizer or have it be more intelligent

Yep, I'll just move the code into the Visualizer.