Forum Discussion
TheEndless
15 years agoRoku Guru
"NanoZim" wrote:"kbenson" wrote:
Have you tried shipping with two background images, one for SD and one for HD to see if a non-scaled HD image yields better performance? Sometimes it's little actions you don't expect to be problematic that cause the most trouble.
I probably can't implement that for this current game, because I'm maxing out my 500kb file limit with the current graphics; there's no way I could include full-HD-res images. But now you've got me really curious about how much of a performance hit the rescaling causes! :? I need to do some tests...
You'll also see a significant performance increase if you slice your background image into multiple pieces and draw them independently. You can accomplish this with a single image by using the SourceRect attribute effectively. Doing this, I saw a performance bump in the hundreds of milliseconds.