I am using C# and the latest DarkGDK.Net.
I was moving along quite well with my current game project but all of a sudden, my FPS dropped from 60fps to below 10 on the same machine. I am not using any 3D commands. I am using Image and Bitmap types to .Paste or .CopyTo or .CopyFrom images to the screen. I thought it something I recently added so I removed recent features but the FPS has still remained low.
I coded in time tracing to find the bottle neck and it pointed to the Image.Paste commands as the problem. I created a fresh program with just basic loading images and pasting and it ran fast, back at 60 fps. I continued to remove and reduce my main project to trace/find the problem but still the FPS is lower than low and degrades even lower if left running.
One test I did on my basic/fresh program was load my images over and over, using the same Image array thus the previously created images get orphaned and hopefully garbage collection cleaned them up. But doing this caused the FPS to drop after about 8 iterations.
Beta testers also reported horrible FPS numbers so it isn't just my machine.
So, is there any limit on use of Image types, like the number you can have before it affects performance, etc?
Is there a different/better way to BLT 2D images to screen?
Any other ideas?
This has become very frustrating and I am on the brink of looking at other libraries like SDL and XNA.
If you want to see code then let me know.
Thanks for the help.