From 721d43756cf45596a2968ae9e01c3c0357b73a07 Mon Sep 17 00:00:00 2001 From: jlew Date: Mon, 28 Jun 2010 21:52:40 +0000 Subject: Added a lock over the draw and event loops (ticket #29) There is an issue that changing values from the event loop while in mid draw can cause some crazy frames until the next static frame is drawn. So this commit adds a lock over the even loops and the draw loops that prevents python from stealing the thread while drawing or modifying internal variables that are used by the drawing methods. Question: Should I instead implement a game engine locking system so that the event can lock only on its drawing portion or leave it over the entire draw/update process. --- (limited to 'MAFH2/BattleEngine.py') -- cgit v0.9.1