In so many practical code,
we see the seperation btwn Update and Render();
-Update part : CPU operation
-Render part : GPU and Graphic card operation
But, is there any reason why many people does not mix
these two part.
I mean...
Traditionally we use this kind of code method,
Object::Update()
{
...
..
UpdateObj1();
UpdateObj2();
UpdateObj3();
...
}
Object::Render()
{
...
..
Render1();
Render2();
Render3();
..
...
}
So there was repeation,
CPU operation -> Graphics operation bottleneck ->
CPU operation -> Graphics operation bottleneck ->
CPU operation -> Graphics operation bottleneck ->
...
But, if we mixed those two part,
I think we could reduce GPU bottleneck.
When CPU operation time, we pre-call Graphics operation to
reduce delay.
like this code,
Object::Update()
{
....
..
UpdateObjectAnimation();
...
renderObj1();
...
..
...
UpdateObj2();
RenderObj2();
..
..
}
Maybe, If I use this kind of coding method,
my game's performances will imporve.
Is it true? I am not sure....
any comments plz~ -_-a