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: Oracle 10g on Solaris 10 non-global zones with asynchronous I/O ...If direct I/O is used and there is not enough database buffer cache, it may even decrease the performance by moving the problem from double buffering to a lack of ... How to use "Virtual topologies" - comp.parallel.mpi... the free MPI implementations (probably) don't support these kind of optimizations (due to the lack of information about the underlying network topology). Performance ... T1000/T2000 + ZFS + SAS performance - comp.unix.solaris... just fine in an x4100, so the difference on the t1000 seems like it must be [lack ... Well isn't that based on your availability and performance requirements? COSMOS/Works vs. Ansys for SolidWorks - comp.cad.solidworks ...... and the only weakness is the lack of an integrated CAD option. I understand that will change soon (check out www.neicad.com). If you compare price and performance you ... Input on RAID 1 - comp.cad.solidworksDoes anyone have experience with RAID 1 and it's effect on performance? Would just ... striped" (meaning everything gets read or written to the closest sector, for lack ... Random access to content of archived files without extraction ...Is it, that lack ... For better performance modifications are required, too, so that the decompressor can skip over blocks that are discarded anyhow. > Is it, that lack ... VBOs vs Display Lists - lets test it out! - comp.graphics.api ...My main objection to this benchmark is the lack of efficient geometry (triangle strips). However, this would just widen any performance gap by making per-vertex caching ... SolidWorks Sucks... - comp.cad.solidworksA lack of subassemblies leads to an inordinate amount of top level mates. ... These references seem to start to kill SW in terms of > performance. > > Of course the ... Help to choose a new MCU - comp.arch.embeddedBecause of lack of features but mostly because of the rising prices and ... bootloader - 32kB of SRAM local to CPU - Two 16 kB SRAM blocks for high performance I ... T60 Memory Issues - comp.sys.laptops.thinkpad... eHow.com A lack of memory space will cause problems with your... How to Add RAM to a Leveno T60. Adding RAM to a laptop is an easy way to greatly increase performance. Dealing with Poor Performance - Team Management Training from ...There are five main ways to overcome performance problems associated with a lack of ability. Consider using them in this sequence, which starts with the least intrusive: Lack of Performance Has a Price: Motivating PerformanceLack of performance has a price, and it's probably more than you realize. Motivating performance of your employees isn't just something to talk about; it's ... 7/15/2012 6:43:59 AM
|