lack of performance

  • Follow


Hi  ,
actually write a game  using opengl .
until now there is only  a 3D  textured terrain   , a cursor   and 6 simple
objects ( with  about 32 points each ,  with texture)  ;
All painting goes in a single function OnDraw()  , witch draws only visible
parts of the scene.
But  it  runs really ,  really  , really  slow ,  and there is just only the
beginning of the game.
Could You give me some hints about this ?
To be more explicit  ,  here is the picture:
  - the part that slow down the whole program , is object drawing  ,  so a
try to place it in a separate thread ,
    is that good idea ? (  actually so it draws nothing )
- I redraw scene every  30 ms  , otherwise cursor stack frozen.
  any suggestions about this?
-I try to place terrain drawing   ,  cursor  ,     and object drawing in 3
separate function  ,  and
 call them only when necessary ( i.e. cursors changed its position => call
DrawCursor() )
May be You have more suggestions about this ...
thanks in advance , and sorry for my terrible English


0
Reply ciur_eugen (2) 11/14/2004 9:06:52 AM

ghost wrote:
> Hi  ,
> actually write a game  using opengl .
> until now there is only  a 3D  textured terrain   , a cursor   and 6 simple
> objects ( with  about 32 points each ,  with texture)  ;
> All painting goes in a single function OnDraw()  , witch draws only visible
> parts of the scene.
> But  it  runs really ,  really  , really  slow ,  and there is just only the
> beginning of the game.
> Could You give me some hints about this ?

Maybe you aren't getting hardware acceleration.

Call glGetString(GL_VENDOR) and if it says
"Microsoft..." then that's the problem.



> To be more explicit  ,  here is the picture:
>   - the part that slow down the whole program , is object drawing  ,  so a
> try to place it in a separate thread ,
>  is that good idea ?

No.


-- 
<\___/>          For email, remove my socks.
/ O O \
\_____/  FTB.    The Cheat is not dead!


0
Reply fungus 11/14/2004 9:26:20 AM


profile your code ?
"fungus" <openglMY@SOCKSartlum.com> wrote in message
news:0xFld.3348$YZ2.1434@news.ono.com...
> ghost wrote:
> > Hi  ,
> > actually write a game  using opengl .
> > until now there is only  a 3D  textured terrain   , a cursor   and 6
simple
> > objects ( with  about 32 points each ,  with texture)  ;
> > All painting goes in a single function OnDraw()  , witch draws only
visible
> > parts of the scene.
> > But  it  runs really ,  really  , really  slow ,  and there is just only
the
> > beginning of the game.
> > Could You give me some hints about this ?
>
> Maybe you aren't getting hardware acceleration.
>
> Call glGetString(GL_VENDOR) and if it says
> "Microsoft..." then that's the problem.
>
>
>
> > To be more explicit  ,  here is the picture:
> >   - the part that slow down the whole program , is object drawing  ,  so
a
> > try to place it in a separate thread ,
> >  is that good idea ?
>
> No.
>
>
> -- 
> <\___/>          For email, remove my socks.
> / O O \
> \_____/  FTB.    The Cheat is not dead!
>
>


0
Reply Michael 11/17/2004 3:38:44 AM

Michael wrote:
> profile your code ?

Normal profilers are mostly useless on OpenGL code.




-- 
<\___/>          For email, remove my socks.
/ O O \
\_____/  FTB.    The Cheat is not dead!


0
Reply fungus 11/17/2004 6:55:14 AM

3 Replies
96 Views

(page loaded in 0.184 seconds)

Similiar Articles:













7/15/2012 6:43:59 AM


Reply: