Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
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  Java Game APIs & Engines / OpenGL Development / performance dropping when camera move / rotate with frustum test on: 2013-07-12 12:57:51

(sorry for my poor english)

I am trying to make a game like Dungeon Master but in voxel style. I divided my dungeon in 32*32 chunks. Each chunk can contains 12'000 cubes but most of the time no more than 500 cubes.

- When I walk in my dungeon with no frustum test, all is ok. Low framerate (~70fps) but smooth (1024 chunks to draw).
- When I use frustum test I draw ~60 chunks and my frame rate is better (~ 200fps) but no more smooth when I walk...

- I walk to chunk to another chunk. Frame length is about ~5 milliseconds but suddenly one or two frames length will be ~200 milliseconds... and come back to ~5 milliseconds.

I use a big Vertex Array with all data and each chunks have a pointer on the array. I have same problem with VBO. I have ~2'000k triangles well shared between chunks.

I think it's something like that :
- frustum test choices 50 chunks
- opengl : yeah I render that fast
- camera move
- frustum change and choices 45 chunks
- opengl : oups these are not same vertices to draw I have to do something
- opengl : I take 200 milliseconds, but it's ok now, I render fast again.

I hope you understand what I mean. Truly sorry for my english Smiley

Any idea ?


Edit : I use lwjgl and an old graphic card : NVidia Quadro FX 580. I will try later on AMD modern card.
Pages: [1]
numerical (363 views)
2017-02-21 07:32:16

numerical (365 views)
2017-02-21 07:31:46

theagentd (475 views)
2017-02-18 13:42:33

theagentd (473 views)
2017-02-18 13:35:16

h.pernpeintner (1639 views)
2017-01-24 22:39:11

h.pernpeintner (1627 views)
2017-01-24 22:38:32

Galdo (2195 views)
2017-01-12 13:44:09

Archive (2154 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2694 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2355 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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!