Hello everyone!
I'm a college student I'm writing a program for my faculty, and I meet with some bottleneck here:
it's a demonstration of some particles moving around, and I do it like this: a timer call InvalidateRect every 50ms, and in OnPaint, I call a function updates the particles' positions and redraw the whole scene, it was ok, but after I add some texture mapping on the experiment devices, the speed becomes unbearably slow, I think redrawing the whole scene rapidly cost much resource, but I wonder how those 3D games make it? For examp, in a tank game, when a tank fires a bullet out, don't it need to redraw the whole scene?
So I need some help to boost my program's performance here ...
Thank you ahead!
ps: I used gluBuild2DMipmap, I've already seen in some post that it's slow, but I don't know what to take the place of it...




