PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Gapidraw.net 2.04 released

Gapidraw.net is, funnily enough, a dot net wrapper for gapidraw. This allows you to program gapidraw using C# and Visual Basic.net.

Performance with the latest version of the compact framework is very good, I get 230 sprites at 30 fps for my C# version of MFC.exe. as opposed to 235 sprites for the c++ version

Gapidraw.net is available for download from www.intuitex.com. It is freeware and open source, under a do-what-you-like license.

It requires gapidraw 2.04 and visual studio 2003.

Sean
Damn thing made me anon. I am of course
Wow, those performance numbers impress the hell out of me. I would have absolutely believed the C# version to be considerably slower.
I was impressed as well...

With gd 1.04 on my old toshiba, the numbers were:
c++ 170
c# 160

I have the compiled apps at: http://www.intuitex.com/download/GdDemos.zip
If you (or anyone else) have the cf framework installed, give it a shot. I would be interested in getting other peoples figures.

I'll try a tilestudio map reader in c# next. If the figures are still good, I'll reconsider using c++.

Sean
Isn't GapiDraw a binary library? If so then the FPS shouldn't be surprising, as relatively little processing is actually occuring on the C# side. All the work is being done by a binary compiled from C++ source.

Dan East
yes, Gapidraw is a dll and won't be affected by the speed (or lack of) of the compact framework. But there is a lot of marshelling between managed and unmanaged code which tends to be quite expensive.

All the sprite control, movement, timing, etc is done in c#.

The cf is quite quick if you avoid the gui. I would be very suprised if vb got anywhere near that :)

Sean
Ok, I must be doing something wrong here. I have followed all the instructions in the readme that comes with GdNet, but I keep getting MissingMethod exceptions when I try to run the sample applications. I assume I am getting this because I am not getting the DLL installed when I deploy it or something like that.

I am just trying this on the PPC2002 emulation transport, so I rebuilt the whole solution as it said and then I copied gd204.dll from the PPC2002-emulator folder to the samples\simpleppc\bin\debug and samples\simpleppc\bin\release folders. In this case I am compiling in debug mode.

I then tell it to deploy the application and when I go to run it, I get the exception. I check the directory on the PPC emulator and the DLL is not present. Do I need to install the gapidraw.dll to the emulator first some other way or do I need to deploy the compiled executable and DLL some other way.

Any help would be greatly appreciated.

Thanks,
Calabasa
Anonymous wrote:
... but I keep getting MissingMethod exceptions when I try to run the sample applications. I assume I am getting this because I am not getting the DLL installed when I deploy it or something like that.

I am just trying this on the PPC2002 emulation transport, so I rebuilt the whole solution as it said and then I copied gd204.dll from the PPC2002-emulator folder to the samples\simpleppc\bin\debug and samples\simpleppc\bin\release folders. In this case I am compiling in debug mode.

I then tell it to deploy the application and when I go to run it, I get the exception. I check the directory on the PPC emulator and the DLL is not present. Do I need to install the gapidraw.dll to the emulator first some other way or do I need to deploy the compiled executable and DLL some other way.

Any help would be greatly appreciated.

Thanks,
Calabasa


I almost never use the emulator myself, it's such a painfull way of doing things. I create 2 identical projects, except that one is a ppc app and one is a windows app. I do most of my debugging off the windows app, and deploy to my pocket pc when required.

You are correct that the problem is a missing gd204.dll. You should be able to add the dll to the project as you would any other file. Then when you run the application it will deploy the gd204.dll along with everything else. Try that with the mfc project first as that has the images already included. With the other projects you may have to add the image files as well.

I have found working with the emulator to be so tedious that I just don't bother. Developing the 2 separate app way is so much easier and faster.

Email me if you have any other questions.

Sean