What you did won't work. The advance_time of your body is still called several times per round by the world it is into, therefore you won't get any performance gain.
Anyway I'm not sure that my idea of calling advance_time just once per round for non visible objects will really improve performances or not, this need more tests ^_^ Souvarine. Lunpa, The wrote: > I was digging through the examples, and I found out how to make a > custom soya.Body class that has a proportion of 1 each time > advance_time is called: > > class terrain_Body(soya.Body): > def advance_time(self, proportion): > soya.Body.advance_time(self, 1) > > I've modified the game so that terrain objects are loaded into the > terrain_Body class instead of a normal Body object. Performance > appears to be identical. > > Also, as a correction to before, there are about 40 body objects > (including "terrain_Body") in the attached screen shoot of the game. > _______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
