Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoiding game loop in XNA 4.0

Tags:

c#

xna

game-loop

I developing a simple 3D model viewer on XNA 4.0. Is there a way to avoid a infinite game loop with Draw and Update functions? I need render 3D graphics, but without infinite rendering of scene. I mean I need redraw the scene only then it really changed.

like image 277
Yury Avatar asked Feb 21 '23 21:02

Yury


1 Answers

I suggest taking a look at how they're doing it in their samples:

App Hub - WinForms Series 1
App Hub - WinForms Series 2

like image 187
George Duckett Avatar answered Mar 02 '23 20:03

George Duckett