User talk:Jofur: Difference between revisions

From Rosetta Code
Content added Content deleted
(Welcome!)
 
No edit summary
Line 1: Line 1:
{{User:Short Circuit/new user greeting}} --[[User:Short Circuit|Michael Mol]] 04:51, 27 February 2010 (UTC)
{{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)

Revision as of 11:52, 14 July 2010

Welcome to Rosetta Code! I'm Mike, and I noticed you created an account.

Some quick things you should be aware of:

Template:Mylang Helps you show what languages you're familiar with, and helps us become aware of skills with languages we haven't seen.
Category:Unimplemented tasks by language A place to find tasks missing solutions in various languages.
Blogs, twitter, facebook... We have them, and are interested in yours.
Special:Webchat Logs you into #rosettacode on the Freenode IRC channel. Not usually the most active communications medium, but occasionally helpful. It's logged at http://irclog.perlgeek.de/rosettacode/today.
Rosetta Code:Village Pump A general Q/A and discussion area.
Rosetta Code:Finances For most of Rosetta Code's history, expenses have been paid out of my pocket. I can't afford that much longer, and so you can see the state of Rosetta Code's finances, and how you may help. If you enjoy or are excited about the site, please consider reading through it.

Sorry for the boilerplate; it can be a bit difficult giving an individual greeting to each person. If you post information about your technical interests and background, I'll probably read it. If you already have put that kind of information on your user page, I probably already have; I'm always interested in how people do and can benefit from Rosetta Code. --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 ~ --Vera 11:52, 14 July 2010 (UTC)