You are right I wrote my code was 5 times slower than the DLLs - but we were still at 0.04 msec - I did optimizer a bit afterwards and get the remaining stuff to work -1 - but I will put a small video up at sometime. The DLL do not make the difference - the ddraw does
Yes it was the $ifndef directx parts, since that code was using GDI - and the project was always compiled/run with a DIRECTX compiler directive anyway - but I guess the reason what for debugging since DirectX is so possessive of the screen it make debugging painful - unless you use 2 monitors or remote debugginng.
$IFDEF, $IFNDEF and $DEFINE .., are used on compilation, not runtime. So if you code for multiple platforms or only when debugging, you could separate platform specific code like this:
{$IFDEF MSWINDOWS}
...do Windows specific stuff here
{$ENDIF}
{$IFDEF LINUX}
..do Linux stuff stuff
{$ENDIF}
See more here: http://docwiki.embarcadero.com…ional_compilation_(Delphi)
BTW: My WIn 8.1 German Chapter 1-6 install - gives me the joy of spending time on some remote debugging tomorrow - good night
It wanted DirectPlay installed, restart and then nothing, thanks for pointing me into this dark hole