Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (670)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Performance Tuning / Re: Slow JOGL Performance on new Macbook PRO on: 2011-07-04 08:41:09
FYI: 3ms is still slow, and is no indication whatsoever that lines are suddenly accelerated.

Yeah, I figured it's not necessarily that lines are accelerated, it's just that this is essentially a board game so if after all the additional stuff I need to draw it ends up being about 10ms, I'm more than happy with that.  At any rate, your post helped me a lot.  Thank you.
2  Game Development / Performance Tuning / Re: Slow JOGL Performance on new Macbook PRO on: 2011-07-03 18:51:59
Thanks guys!  Your advice really helped.  The problem was indeed far too many calls to glBegin, vertex, and end.  Reading the articles on vertex arrays and buffers led me to another one on display lists and simply switching the sequence of begin, 6 x vertex and end into a single list and calling that multiple times, even within the same transforms, and matrix stack functions, and even still using GL_LINE_LOOP, yielded a render time of around 3 ms!!!!  Now I know I've chosen the simplest, probably least beneficial way of doing this, and have more options up my sleeve for later.

3  Game Development / Performance Tuning / Slow JOGL Performance on new Macbook PRO on: 2011-07-03 09:54:50

Newbie here so please be gentle Smiley

I'm trying to build a hex-mapped turn-based game.  I started out with processing and ran into performance problems, rendering the map taking 800ms each time.  I built a stand-along program that uses JOGL 2 that only draws the hex-map and as soon as there are many hexes, it takes a very long time to draw, i.e. 1200ms to draw 1200 hexes (30 rows, 40 columns).
The JOGL display function is really simple, it clears the background, and then draws the hexes in a loop.  Each hex is drawn by using a glBegin(GL_LINE_LOOP) call, followed by 6 glVertex2d for each vertex, and finished off with a glEnd.  I push the matrix at the beginning of each render and at the beginning of each row, and then pop them out respectively.

My machine is a brand new Macbook PRO and I simply don't understand how this is taking so long.  I ran the JOGL Gears demo from JNLP, and maximised the window, and it runs very smoothly.  So, on the assumption that a whole lot more lines and quads are being rendered in the Gears demo, I must be doing something wrong.

Any advice?

Thanks in advance!
Pages: [1]
IanParcs (35 views)
2016-04-18 14:18:53

KaiHH (35 views)
2016-04-18 08:35:41

KaiHH (66 views)
2016-04-15 12:43:58

theagentd (66 views)
2016-04-14 02:16:17

theagentd (72 views)
2016-04-14 02:15:43

IanParcs (66 views)
2016-04-12 03:51:16

IanParcs (36 views)
2016-04-12 03:50:03

IanParcs (32 views)
2016-04-12 03:49:54

IanParcs (29 views)
2016-04-12 03:49:52

IanParcs (36 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!