1
Window / Prevent window repaint
« on: May 14, 2011, 12:14:23 pm »
Hey, i just started using SFML from java 2d and im trying to convert some code over.
Im developing a small 2d map layout tool and i dont want the window to refresh itself as it only needs to when an object is moved or dragged etc. Mainly im looking to increase the performance by stopping it repainting every frame.
Does anyone know what function i could call to stop refreshing/repaint?
Im developing a small 2d map layout tool and i dont want the window to refresh itself as it only needs to when an object is moved or dragged etc. Mainly im looking to increase the performance by stopping it repainting every frame.
Does anyone know what function i could call to stop refreshing/repaint?