Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Sync and Direct3DDevice9->Present

Author
Message
Mod
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 19th Dec 2006 09:04
Hi all,

I'm trying to create A Third Party Command DLL that uses Direct3DDevice9->Present to present the DbPro front buffer in multiple windows, but, it doesn't work !

I'd like to know how works the sync command of DBpro. I suppose that this command call first an Direct3DDevice9->EndRender , a Direct3DDevice9->Present, then a Direct3DDevice9->BeginRender. I suppose that is the reason why two sync are needed to have an image in Dbpro window (one sync to start render, a second to present the render). I am right ?

If I'm wrong, where are located internally EndRender and BeginRender ? I need to know that to place a present in the Dbpro loop, I'd like to not recall int my DLL EndRender and BeginRender.

I hope someone knows that !

RPG Engine and Odyssée : http://modsoftware.ifrance.com
EddieB
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 19th Dec 2006 21:56
Didnt read your post properly, but:

Direct3DDevice9->Clear

?
Mod
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 20th Dec 2006 09:11
Oops, the commands were BeginScene and EndScene, not BeginRender and EndRender... ^^"

Eventually, I'll use EndScene before Present then use EndScene, I just hope that calling sync then my function will not cut a lot the fps...

RPG Engine and Odyssée : http://modsoftware.ifrance.com
EddieB
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 20th Dec 2006 15:02
The usual layout in a directx application is:

device->Clear(....)

device->BeginScene(...)

(Drawing code here...)

device->EndScene(...)

device->Present(...)

Login to post a reply

Server time is: 2024-09-28 14:33:05
Your offset time is: 2024-09-28 14:33:05