Search the Community
Showing results for tags 'damage modelling'.
Found 1 result
I've been able to activate damage modelling for all planes in EAWPRO. It was very limited for the previously none flyable aircraft but now is on par with all other planes as far as I can tell. In fact these routines were further enhanced by introducing more unpredictable behaviour when planes get damaged and the pilot is not dead (yet). Normally one would need to use an additional randomisation routine to make this happen, but in assembly coding there are many memory locations which already generate a random value which only needs to be read and then can be used at will. Such use will save app. 100 bytes from the game loop, every time a random value is required. and since the game uses this routine about 1000 times speed can be dramattically increased by not using it and just reading the value directly from a memory location, like for instance the stack pointer or Windows clock timer's microseconds. I've used it on numerous other occasions to save speed and space in the program and from here on, or actually from a while back on, I will usie this approach rather then calling on the randomisation routines where possible, after all the results are not any different but it will definately speed up the game a little. VonBeerhofen