| View previous topic :: View next topic |
| Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 12, 2009 10:26 am Post subject: Where Do put the graphics to avoid flickering? |
|
|
| In direct3d8, where would I render the graphics to avoid flickering?
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Feb 12, 2009 10:31 am Post subject: |
|
|
| Double buffer..
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 12, 2009 10:40 am Post subject: |
|
|
| Direct3d Hook... Not making my own game.
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Feb 12, 2009 10:44 am Post subject: |
|
|
| The rendering loop or w/e would you call it. Anyway the loop drawing all the stuff.
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 12, 2009 11:57 am Post subject: |
|
|
Yea after which function T.T...
Cause Im not trying to overlay it with dx (cause I suck) so Im inserting GDI32 after a function. Present flickers, EndScene Flickers
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Feb 12, 2009 12:15 pm Post subject: |
|
|
| Errrr.... I know nothing about GDI+D3D, but I'll guess. You're getting your DC with GetDC implemented in windows.h? How are you getting your DC? You might want to try IDirect3DSurface9::GetDC() from DX SDK.
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Thu Feb 12, 2009 12:26 pm Post subject: |
|
|
| EndScene should work I think. But you should use directx instead of GDI. The D3DX classes make it really easy to draw text and images and they are faster than GDI.
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 12, 2009 12:45 pm Post subject: |
|
|
| tombana wrote: | | EndScene should work I think. But you should use directx instead of GDI. The D3DX classes make it really easy to draw text and images and they are faster than GDI. |
... i suck horribly at DirectX ...
ANd Nope. Endscene still flickers alot.
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Feb 12, 2009 1:32 pm Post subject: |
|
|
As long as you draw right after ::Present() there should be no issues. The flickering occurs because ::EndScene() is not a synchronous function. Either way, doing this in DirectX is preferable as previously mentioned.
[Edit: I think ::Present() is not synchronous as well. Since your function is GDI and not affected by the DirectX swap chain, you could try drawing on calls to ::BeginScene().]
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 12, 2009 4:09 pm Post subject: |
|
|
| Flyte wrote: | As long as you draw right after ::Present() there should be no issues. The flickering occurs because ::EndScene() is not a synchronous function. Either way, doing this in DirectX is preferable as previously mentioned.
[Edit: I think ::Present() is not synchronous as well. Since your function is GDI and not affected by the DirectX swap chain, you could try drawing on calls to ::BeginScene().] |
Thanks. Ill try that. Whats the flickering caused by anyways ...
Edit: I remeber some1 awhile ago made a overlay or claimed to make an overlay that used GDI32 that had no flickering on direct3d.
Last edited by dnsi0 on Thu Feb 12, 2009 4:46 pm; edited 1 time in total |
|
| Back to top |
|
 |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Thu Feb 12, 2009 4:44 pm Post subject: |
|
|
| I might be off-topic or on-topic, but the compiler takes sometimes 3 - 4 seconds to render the GUI of a .NET application (both in the compiler and when it's running). Why is that?
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu Feb 12, 2009 5:20 pm Post subject: |
|
|
dnsi0 what happened to building that one driver then starting to actually learn C. Because from what I'm still seeing you suck just as much as you did before and you still don't know C. You should not be even trying this if you don't know how to use it especially with graphics and display...
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 12, 2009 5:31 pm Post subject: |
|
|
| lurc wrote: | dnsi0 what happened to building that one driver then starting to actually learn C. Because from what I'm still seeing you suck just as much as you did before and you still don't know C. You should not be even trying this if you don't know how to use it especially with graphics and display... |
Im not using C. Im using delphi.
|
|
| Back to top |
|
 |
|