Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ideas for speeding up:
Well, coding the AMIGA-port of Crossfire, I had a nice time finding any
speed-ups and here is what I found (contributions are welcome) :
- Place all gates and handles in 'object *map->gates'.
This results in far faster handling of handles/buttons, because only
map->gates has to be checked for corresponding gates (not the whole map!)
- put all ALIVE, MONSTER and ANIMATE objects in 'object *map->alive'.
This way we only parse the needed stuff, not all the passive treasure,
handles, food, etc...
(This REALLY speed up the amiga-version!)
- Place more data in the archtype.
Not for the speed, but more for the memory-usage.
Some announcements for the AMIGA-port :
- I'am actually PLAYING the game right now!
- I still could use some help on speeding-up the game.
(I solved the graphics and input, so that is out of the question now)
- Anyone having some interesting idea should mail me. (I will mail the source
to frank where I am satisfied is works)
- Technical info:
* Converted bitmaps to bitmaps.amiga file (all bitmaps simply put binary in
one file)
* Uses all the original files (arhcetypes, mapindex, motd, map.oo & map.om)
* runs on a 2 meg amiga (whilst playing musics),
probably on a 1 meg too (without music!).
That's it, CUL8R, Patrick van Logchem v912152@si.hhs.nl