Blitz3D Question

Blitz3D Forums/Blitz3D Programming/Blitz3D Question

MadMunky(Posted 2003) [#1]
Can anyone help me out with some ideas about these problems

Dungeon Maker the game which some of you might know im helping wishbone with we have a couple of problems

1. Dungeon Maker always uses 100% CPU
2. The Editor also uses 100% CPU all the time and also uses around 250Meg memory + 250Meg of virtual memory. Surly the editor should only use the CPU when your doing somethink and not all the time.

Heres a screenshot of the editor


Heres one of the game


Any ideas why this happens and what we can do to fix it?


Rob(Posted 2003) [#2]
Blitz3D is for games and hence is a cpu hog. To release some time for other tasks, add the delay command.

Start with Delay 50 at the beginning of your loop. A regular Delay will release Blitz3D for as long as that Delay lasts. Blitz3D does nothing during a delay period.


MadMunky(Posted 2003) [#3]
Thanks the delay for the editor helps alot any ideas how we can fix the high memory useage?


Neochrome(Posted 2003) [#4]
try this
gTimer = createTimer(50)

while keyhit(1)<>1

   waittimer gTimer

   DoUpdates()
   Updateworld() ; if you need this!
wend



this will only use what it needs leaving the processor to be available..


Genexi2(Posted 2003) [#5]
The memory thing may be due to your program itself, how many resources are you loading into it?
(it looks as if your program creates stuff but doesnt free anything when its done with them)


MadMunky(Posted 2003) [#6]
If anyone interested heres some new screenshots

New Spider Web Wall (Let me just get my trusty AXE)



The Editor (Wouldnt be much of a dungeon maker without one)


New Player Values / Direction Arrows / Inventory Screen