Skip to main content
gamedev.net
🔒 Locked

C# 3D editor rendering sync problem....

Started by haust 1 reply 900+ views
Original Post
haust
haust
Hi, for my D3D C# editor i'm using a simple panel control as the target window for rendering (the Paint method is overriden). I have a problem when it come to smoothly updating the view. I'm using a form timer 60 times per second to call a static method which invalidates the panel control. It works but the rendering is not synched with the display and the scene blinks.... Is there a clean way to update the rendering of my scene view ?? thanks. haust.
a_metalhead
a_metalhead
... at the end of the paint meathod, try putting a
panal1.Invalidate()
right there... that may help a bit with the chopyness...
haust
haust
Hi,

I've already tried to do that but nothing get rendered.... really strange.
I've tried to change the PresentParameters.SwapEffect param with Flip, Discard and Copy but the result is still the same :(

haust.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.