PDA

View Full Version : Managed Direct3D code--slow!


bkramer
16th May 2008, 08:24 PM
I wrote some Managed Direct3D Mobile code, using fixed point arithmetic. It runs slow as a dog and its performance relative to the floating point version of the code shows little improvement.

This is on a Kaiser phone. I know that there are issues with graphics on that thing. I am only trying to use the software renderer, but the speed of my app is so slow that I wonder if it's in my implementation. It is a cube with textured faces, spinning as as fast as it can, and I can only achieve 7 seconds per frame (yes... seconds per frame. Obviously my goal is something in the FPS range!).

Would anyone with experience in writing D3DM code care to give me a hand by looking at my code? I'm at kramer (underscore inserted) ae (at) hotmail (dot) com.

Thanks,
Brian

mmone3
16th May 2008, 09:33 PM
Sorry to say the Kaiser only has reference drivers for d3dm, all software driven. Thats why its a dog.

Rudegar
16th May 2008, 09:38 PM
and it also dont help that ms stoped all development of Managed Directx along time agoe and most people who wanna do 3d from .net these days use opengl

also on a as weak platform as arm compared to pc
.net being much much relatively slow on arm compared to on x86

doing 3d in a not truely native language as c++ will never give much speed
less so when it comes to graphics

bkramer
16th May 2008, 11:36 PM
These comments aren't helping. I understand that my environment is not up to industry standards in terms of performance (15-60 fps, for example). But rendering a cube in Direct3D should not be as bad as one frame every 10 seconds. I'm in search of someone who knows the correct baseline performance expectation for my scenario and can help bring the perf of my simple 3D application in line with what is really expected. Alternatively, there may be anecotal information that says my application is actually performing as fast as expected. I don't know that.

heliosdev
17th May 2008, 12:24 AM
The attached archive contains a native and a managed D3D example showing a rotating textured cylinder (from the WM6 SDK). Both run interactive on my HTC Touch (Elf).