absecrist / sb2-js

Automatically exported from code.google.com/p/sb2-js
0 stars 0 forks source link

Optimise Execution Queue #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Too much time is spent processing the execution queue in scratchcraft.sb2. In 
fact, 98.5% of cpu is used just to process the excecution queue (when 
calculating lighting for world viewer), with only 2% cpu actually being used 
for the program that's repeating.

not fez.2sb2 could be faster but since it does more in a single loop it is 
already 3x faster than flash scratch.

Original issue reported on code.google.com by rhy3alte...@gmail.com on 15 Jun 2012 at 11:47

GoogleCodeExporter commented 9 years ago
*85% is spent in the execution queue, 98.5% is spent on execution as a whole 
(including real scripts)

There's also a leak somewhere which makes it get constantly slower.

Original comment by rhy3alte...@gmail.com on 15 Jun 2012 at 11:51

GoogleCodeExporter commented 9 years ago
Fixed that, but it's still iterating over like 300 items in scratchcraft every 
time a loop segment ends.

Fix that, and we're golden.

Original comment by rhy3756...@gmail.com on 16 Jun 2012 at 10:56

GoogleCodeExporter commented 9 years ago
Made execution queue additions a lot faster. Scratchcraft now runs full speed a 
lot of the time. (well what I can see of it does - perlin noise terrain gen is 
broken for some reason)

Original comment by rhy3alte...@gmail.com on 20 Jul 2012 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by rhy3alte...@gmail.com on 5 Aug 2012 at 1:35