Digby wrote:if you are simply recording the elapsed time of Present, you are also measuring the time it takes the driver to parse and execute everything already in the command buffer since the last flush of commands to the driver.
That's exactly as I was thinking.. some time ago I posted
here my experience with OpenGL and finally the results seem to be the same using DirectDraw. It's something frustrating: I tried to do a program that fills a 240x320 box using direct access to the framebuffer for the Ipaq 2750 and it gets 270fps, but the same program running on the Axim using DirectDraw or framebuffer never gets more that 90/120fps, the result is worst using Direct3DM or OpenGL with 30/40fps... obviously I don't need more than 60fps but translating those routines to my program, the Ipaq 2750 gets 60ftps and a smoothly execution but the Axim does not get more that 24/30fps

so, the video is the bottleneck for the Axim.
Digby wrote:
For most games, optimum performance will occur when running fullscreen, with the swapeffect set to discard, and the presentation interval set to immediate (this could cause tearing though).
I tried ALL, and the Axim can't enter in fullscreen. I only can work in window mode, I'm passing this initialization:
- Code:
d3dmpp.Windowed = TRUE;
d3dmpp.SwapEffect = D3DMSWAPEFFECT_DISCARD;
d3dmpp.BackBufferFormat = D3DMFMT_R5G6B5;
d3dmpp.EnableAutoDepthStencil = FALSE;
d3dmpp.AutoDepthStencilFormat = D3DMFMT_D16;
d3dmpp.FullScreen_PresentationInterval = D3DMPRESENT_INTERVAL_IMMEDIATE;
g_pD3DM->CreateDevice( uAdapter, D3DMDEVTYPE_DEFAULT, hWnd, 0, &d3dmpp;, &g;_pd3dmDevice );
g_pd3dmDevice->SetRenderState( D3DMRS_CULLMODE, D3DMCULL_NONE );
g_pd3dmDevice->SetRenderState( D3DMRS_LIGHTING, FALSE);
g_pd3dmDevice->SetRenderState( D3DMRS_ZENABLE, FALSE );
Thanks a lot for your answer Digby
Regards