Recent

Author Topic: BitBlt  (Read 9853 times)

dusanx

  • New Member
  • *
  • Posts: 17
BitBlt
« on: May 30, 2009, 09:44:07 pm »
BitBlt works very fast on both Linux and Windows. I am completely sure that BitBlt uses graphics card hardware on both systems.
BitBlt on Mac works several times slower.

Is there anything I've been missing? Any substitute?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Re: BitBlt
« Reply #1 on: June 05, 2009, 01:59:25 am »
Only on windows is bitblt implemented by bitblt. On linux a serverside copy is used, which depending on your x server, might be done by hardware.
On OSX an image copy is done too, but apperently that routine doesn't use hardware.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

z505

  • New Member
  • *
  • Posts: 38
  • think first, code after
Re: BitBlt
« Reply #2 on: March 09, 2017, 05:44:49 am »
Sorry to revive old post.
Is there a fast macos solution?  >:(
And anything changed since 2009 now that it's called macOS and no longer MacOSX?

(This is not premature optimisation 101)
think first, code after

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: BitBlt
« Reply #3 on: March 09, 2017, 11:38:59 am »
Using OpenGL?
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

z505

  • New Member
  • *
  • Posts: 38
  • think first, code after
Re: BitBlt
« Reply #4 on: March 09, 2017, 07:17:44 pm »
Yes, sometimes you want to use bitblt to get an image into opengl quickly, if that image is already in your memory and it will be loaded thousands of times, not just once initially. Then premature optimisation matters greatly and is of benefit :-)
« Last Edit: March 09, 2017, 07:20:06 pm by z505 »
think first, code after

 

TinyPortal © 2005-2018