Code center > Suggestions

Too many bots on screen!

<< < (4/4)

PurpleYouko:
in a nutshell.

The program uses a timer module that keeps constant, real time, independent of the program itself.

The program also increments a counter once per cycle.

Once per program loop, the time on th etimer is captured and stored in a variable. This is compared to the previous time. (last time this point in the loop happened) and the rate in cycles per second is calculated and displayed.

The value you see is real cycles divided by real time.

Numsgil:
2.4.7 has a button to limit the speed of the simulation to about 10 or 15 cycles/second.

The max speed slider just seemed like a good idea.  Feel free to play with it or not.  Pre 2.4.6 it was set to 60.

Numsgil:

--- Quote ---
--- Quote ---2.4.7 has a button to limit the speed of the simulation to about 10 or 15 cycles/second.
--- End quote ---
ah. I didn't see that.
so this then doesn't interfere with the sim ...
but only introduces a 'delay' imposed from outside ...
invisible as far as the bots are concerned. yes?
--- End quote ---
Correct.  Sorry there's no graphics for the new buttons, I have no internet, and well   -_-



--- Quote ---
--- Quote ---The max speed slider just seemed like a good idea.  Feel free to play with it or not.  Pre 2.4.6 it was set to 60.
--- End quote ---
right. I see it defaults to 60 here as well ...
but one should be able to go up to 100 now, yes? is that not what you raised Maxvel to?

--- End quote ---

180 is actually the max.  Larger than that and it overflows.

You can also use this as a sort of drag force.  Set it really low and bots must move slowly.


--- Quote ---btw ... does 'seed' work in 2.4.7?
seems I get a different sim each time I do a new start.
--- End quote ---

Mine has the same sim everytime I start a new sim with the seed.  What seed are you using?  Maybe it's a weird one.

I use 86 I think, (cause 86 is a fun number ;))

Old Henk:
regarding limiting the amount of bots:

I think this is one of those things a good scripting system could take care of.

ie "If amount of bots is more than N, eliminate X amount of corpses/bots/bots with least energy etc

Numsgil:
Maybe I can get a programmer to work on scripting when the C++ port is finished.

Navigation

[0] Message Index

[*] Previous page

Go to full version