GoDarkCherries Posted June 3, 2004 Posted June 3, 2004 My program is rendering each frame probably onto the screen until after i minimise or overlap the window, a white blank screen appear. NOTE: I am calling my "Render" function inside the "MessageLoop" using it's idle time. (is this correct)? Thanks. Quote
Administrators PlausiblyDamp Posted June 3, 2004 Administrators Posted June 3, 2004 There is a good chance that the deice is getting lost when you minimize and will need to be re-created. http://staff.develop.com/candera/weblog2/articleview.aspx/DirectX/Direct3D/13%20Device%20Recovery.xml may be worth a look. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
GoDarkCherries Posted June 3, 2004 Author Posted June 3, 2004 Thanks, i will take a close look at the topic lost device, may be that is what i need. Quote
GoDarkCherries Posted June 3, 2004 Author Posted June 3, 2004 Thanks, but another question Hey, i have tried it, it WORKS, thank you so much... that's been brothering me for ages hahaha... but i have got another question... i think Checking for LOST DEVICE every time inside the messageloop is a bit of a waste of clock cycle is there anyway to overcome this? Quote
ThePentiumGuy Posted June 3, 2004 Posted June 3, 2004 http://www.xtremedotnettalk.com/showthread.php?t=86046 i posted some code there showing how you would check it, not every frame, but every 5 seconds Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Kavan Posted June 3, 2004 Posted June 3, 2004 I think there is nothing wrong with checking it each time. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.