What part of my reply is confusing?
The render() method can be called many times a second. Creating a new Image every time is expensive and unnecessary. Create your background image instance...
Type: Posts; User: KevinWorkman
What part of my reply is confusing?
The render() method can be called many times a second. Creating a new Image every time is expensive and unnecessary. Create your background image instance...
You shouldn't initialize the Image every time render() is called. Initialize it once, then use the same instance over and over again.