User talk:Jofur: Difference between revisions
no edit summary
(Welcome!) |
No edit summary |
||
Line 1:
{{User:Short Circuit/new user greeting}} --[[User:Short Circuit|Michael Mol]] 04:51, 27 February 2010 (UTC)
== Note about Forest fire==
Hello Jofur,
last night I happened to test your code for [[Forest fire]] on Linux but it wouldn't compile (with pb 4.50) because of two reasons:
1. all 3 color ''constants not found''
:-> so I declared them with fixed values at the top
2. ''forbidden devision by sero''
:-> DesktopFrequency(0) returns 0 as it is the'' 'default''' setting
:(you only get real values, if the user had set up a differing frequency)
:-> so I manually set it to 60
Afterwards the program started well, but immediately the CPU encreased to over 90% ( 50% used by the windowprocess and 40% for the comp-exe). I searched very long and tested various delay statements in the main loop and/or the procedures but without success. Setting the WaitWindowEvent to 120 lowered the CPU usage down to 15% but only until the 'fire' started to show and encreased again like before.
Well - maybe you know a way to lower this strain reasonably - that would be nice. :)
Please take this as hints, 'cos I very much appreciate your and Demivecs continuous engagement supporting PureBasic on RosettaCode. best regards ~ --[[User:Vera|Vera]] 11:52, 14 July 2010 (UTC)
|