#4212: Fix throttling of dangerThreadFunc.
-------------------------------------------------+-------------------------
        Reporter:  NoQ                           |      Owner:
            Type:  patch (an actual patch, not   |     Status:  new
  a request for one)                             |  Milestone:  unspecified
        Priority:  normal                        |    Version:  3.1 and
       Component:  Engine: other                 |  master
Operating System:  All/Non-Specific              |
-------------------------------------------------+-------------------------
\
\
 And i always said we have only two threads ...
 Could somebody have a look, just in case?
 I'm not good with threads and sync stuff.

 The semaphore was only supposed to be unlocked every
 `GAME_TICKS_FOR_DANGER` ticks, but time is never saved.

 The extra workload was heavy enough to show up in `perf top`.
 Seems to win around 1.5fps on my machine on a large map.

 Patch for -`bugfixes`.
\
\
\

--
Ticket URL: <http://developer.wz2100.net/ticket/4212>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to