The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 871 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re: Screenshots
#1
Opening a new topic, as both the old topic and the issue are closed.

http://forums.renegadeprojects.com/showt...p?tid=1488

I'm working on the RA2 screenshot code. Most time appears to be spend in lock(). lock() takes about 882 ms in my case (1600 x 1200, Q9450) while the entire function takes 925 ms. So the PCX part appears to be trivial.
How did you avoid this in the YR code?
I guess lock() copies the primary surface from video mem to system mem, but I've no idea why it's taking so long.

Nevermind, it's my loop that transforms the data from 16b to 24b that's taking so long. No idea why though. The memory returned by lock() is already in system memory, right?
Reply


Messages In This Thread
Re: Screenshots - by XTF - 08.09.2011, 22:13:36
RE: Re: Screenshots - by DCoder - 09.09.2011, 06:41:01
RE: Screenshots - by XTF - 09.09.2011, 10:28:20
RE: Re: Screenshots - by DCoder - 09.09.2011, 18:53:27
RE: Screenshots - by XTF - 10.09.2011, 14:48:15
RE: Re: Screenshots - by XTF - 13.09.2011, 15:15:41
RE: Re: Screenshots - by DCoder - 13.09.2011, 19:04:15



Users browsing this thread: 1 Guest(s)