Hi,
I've resurrected my Zarch/Virus code in DBPro and have hit a bit of a stumbling block in terms of speed.
I need to dynamically update my landscape to reflect the spread of virus and also reflect this visually on the map.
I have the basic landscape generation code using a matrix which wraps round, works well and is fast:
https://www.youtube.com/watch?v=uIN-6uErBs8
The skin of my landcape matrix uses the same bitmap as the map but I need both to update dynamically in game.
Refreshing each of them in the main loop causes a major slow down as I'm using a for/next loop for x and z values then applying them to the matrix and map (must be a faster way).
I need a solution which allows me to alter individual pixels in the map bitmap which I can then paste onto the matrix in each loop.
Is there a way of doing this? I'd be grateful for any help.
[img]http://forum.thegamecreators.com/?m=forum_view&t=181020&b=5