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

Possibly Related Threads…
Thread Author Replies Views Last Post
  _Putimage Question. Pete 11 709 01-04-2026, 09:33 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
  NewBie Question niteflyer 2 347 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 388 11-02-2025, 11:37 AM
Last Post: Magdha
  '$include: 'file.tmr' Timing Question pmackay 2 439 10-16-2025, 12:20 PM
Last Post: a740g

Forum Jump:


Users browsing this thread: 1 Guest(s)