Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


DLL speed of Gamma Controls


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 cliffski   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 February 2000 - 02:46 AM

Heres something strange: I have routines wrapped up in a class that use the DirectDraw SetGammaRamp() function to do a nice fade in/out from black. These work very nicely thankyou, and were fast enough (so fast i had to stall them to stop you missing the whole effect in fact). Now i have pushed my wrapper out into a DLL and call the functions through a DLL it is MUCH slower on this machine (havent tried on others). ALL that has changed is that the code now sits in an external DLL, which hasnt affected the blitting speed (blitter now also in a DLL). Does code slow down if accessed through a DLL? or do i have a problem specific to video drivers/gamma controls. Im using DX6 and Visual C++. Thanks in advance http://www.positech.co.uk

Sponsor:

#2 Goodlife   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 February 2000 - 05:07 AM

Hola.

I don''t think it''s the DLL. Once I wrote a program where all my graphics were DLLs that hand-drew the sprites (instead of blitting, or whatever you like). It ran as fast as when I had them in real memory. If I''m not mistaken, the only speed difference with DLLS is the load time, and whatever time waste you incur by using a pointer to a function instead of a direct address. There might be some windows (ugh) overhead, as it watches to see if the DLL can possibly be freed or not, but I''m not sure.

Anyway, I used DLLs for some VERY time-critical routines, and didn''t even lose one millisecond on my render time. This was before I started using directdraw, though, so if there''s overhead there, it could be fouling it. Also, if you''re low on memory, I believe it executes the DLL off of disk, loading it each time, and that would kill performance very nicely.









Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS