Reputation: 504
I'm trying to figure out a way to draw to a half-sized screen resolution and then scaling x2 and drawing. This is to speed up rendering to get a better frames per second. Any ideas?
Thanks
Upvotes: 1
Views: 1802
Reputation: 26925
Use SurfaceHolder.setFixedSize(int width, int height)
.
A call to this method will make your application fill the number of pixels you put in as arguments and then it will scale it up on the screen. This basically means you are filling fewer pixels but it will still render on the whole screen.
Upvotes: 2