I saw java game used 2 threads. One thread for game loop (update, render) and one for handling input (keyboard, mouse). Game loop thread was manually created by programmer. The other cames from "Event Dispatcher Thread" of .JFrame.
On the other hand, I saw C++ game had just one thread (Example SDL or DirectX game progamming tutorials ). It is like this:
// handle input or handle messages / events
So, my question is "which one should I use?".
P/S: please explain why
Edited by KhoaVN, 05 September 2013 - 11:47 AM.