Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Most Efficient Sprites Question
#14
Asking the other devs, and checking the source, it does seem as if QB64PE likes to do this type of efficient copying -- when it can.

When can it do this:
Always for 256 color screens, but it'll do flip/scale/mirror separately first for a performance hit.
For 32-bit screens when it's a direct copy and _DontBlend is set, and there's no flipping, mirroring going on.  
If it's got to scale or flip (in either mode), it'll do that first, and then do a direct copy as long as it doesn't have to do blending.

When can't it do this:
For certain if it's got to blend two colors together.  Note that this is when _BLEND is on, not when you just cross your toes and think, "Welp, this doesn't need to be blended."  Be certain to tell the machine when it doesn't need to blend colors (such as when all your images are 255 alpha), or else it's going to always assume that it's got to.

So flipping/rotating *is* going to affect the speed, but the overall amount depends on various factors such as blending or not taking place.
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 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)