working right??
this working...
but looks like still cut...
not smoothly...
i think criticaly algorithm error... ;;;
help~
(cpu ---> gpu)
for send quickly..
inside the loop, you are incrementing your variable and then seeing if it is more than 1, if it is, then you create another thread. every iteration of the main loop you are creating a thread?
I fear that you're starting from the wrong end. First, check that your app is running at all, and see where the bottlenecks are. If you think that multi-processing will help, you should start with threading your helper libraries, such as sound, physics, or AI. For rendering speedup you should use advanced rendering techniques your GFX card and API offer, instead of putting data into the gfx card threaded - this will likely fail.
Yup. Multi-threading is not a magical technique for speeding up apps on multi-core machines.
You must - must - understand the implications: synchronisation, contention, deadlocks et al. You need to pay particular attention to resource ownership, especially at startup and shutdown.
I'm afraid that you will need to read a tutorial on proper threading first, before you venture into this wacky world. Trust me, it's a different way of thinking about programming then just how to use the threading libs.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.