Dirty area rendering

Hello everyone,



I'm wondering whether any attention has been given to only rendering those areas in the scene that have changed since last frame. I've read that this is a common optimisation in the SimCity games and am interested in the issues that would come to play in attempting something similar. Has anything like this been tried in jME and if not, what are your thoughts on the matter?



Thanks

JWar

I'm quite new to jme, but in general most 3d engines aren't designed for dirty rectangle rendering.



The problem is that once you have a true 3d scene, as soon as you move/rotate the camera, every pixel except the HUD needs to be redrawn anyway.  Since the engines need to support redrawing the entire scene every frame, they are optimised for that usecase.



You could probably fake it by rendering the scene to texture, then every frame calculate the dirty rectangles, update those rectangles, then render the texture to the screen.

This should be less of a problem in a parallel projected scene, as most changes can then be achieved through translations.



I'll look into the render to texture approach.