Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Most Efficient Sprites Question
#11
(02-10-2024, 04:38 PM)Cobalt Wrote: One thing to keep in mind if you need to flip or change the size of your sprites it will really start to slow down your program doing it with _PUTIMAGE. IF possible you should have them already at the size and rotation you need or use _PUTIMAGE to do all that work to a _NEWIMAGE when your game first starts up to avoid any possible slow down while running.
I don't understand, you're already using _PUTIMAGE to display the sprite. I can see that maybe it takes a tiny bit more CPU power to resize an image using _PUTIMAGE but flipping should take nothing more. With flipping you're just changing the start and end x,y coordinates which controls the direction of flip you desire.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Most Efficient Sprites Question - by NakedApe - 02-09-2024, 06:24 PM
RE: Most Efficient Sprites Question - by NakedApe - 02-09-2024, 06:31 PM
RE: Most Efficient Sprites Question - by bplus - 02-09-2024, 08:55 PM
RE: Most Efficient Sprites Question - by NakedApe - 02-10-2024, 12:36 AM
RE: Most Efficient Sprites Question - by bplus - 02-10-2024, 01:39 AM
RE: Most Efficient Sprites Question - by NakedApe - 02-10-2024, 04:25 PM
RE: Most Efficient Sprites Question - by Cobalt - 02-10-2024, 04:38 PM
RE: Most Efficient Sprites Question - by TerryRitchie - 02-10-2024, 07:33 PM
RE: Most Efficient Sprites Question - by SMcNeill - 02-10-2024, 09:44 PM
RE: Most Efficient Sprites Question - by SMcNeill - 02-10-2024, 05:04 PM
RE: Most Efficient Sprites Question - by bplus - 02-10-2024, 07:24 PM
RE: Most Efficient Sprites Question - by SMcNeill - 02-10-2024, 11:52 PM



Users browsing this thread: 1 Guest(s)