-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement redrawing when it needs for fixing #22.
Piston use double buffering for drawing in 2d mode. RenderState is used for redrawing both buffer when it needs. On my computer, CPU load dropped from 6-7% percents to 0.3% without any input with default settings. In general, it works fine, but there are some case that needed addition handling: window resizing, stoping timer after changing field size or mine count and may be something else.
- Loading branch information
Evgeny Khudoba
committed
Oct 25, 2015
1 parent
df2b7ba
commit 9793bc3
Showing
2 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters