   how present function works
  hi,every one.i really want to know how the "Present" function works in Direct3D API.as you know,the beginscene() function causes the system to check the internal data struct and availability rendertarget(http://www.gamedev.net/community/forums/topic.asp?topic_id=185628).then call all render primitive directives before calling endscene(),our draw call directives just are put into a queue.but when to flush the queue?at the time when call endscene(),or present().when i write my ai,physics,or other process codes?oh..please forgive my terrible english.   