Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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]
EgonOlsen (42 views)
2018-06-10 19:43:48

EgonOlsen (22 views)
2018-06-10 19:43:44

EgonOlsen (43 views)
2018-06-10 19:43:20

DesertCoockie (197 views)
2018-05-13 18:23:11

nelsongames (124 views)
2018-04-24 18:15:36

nelsongames (123 views)
2018-04-24 18:14:32

ivj94 (864 views)
2018-03-24 14:47:39

ivj94 (125 views)
2018-03-24 14:46:31

ivj94 (768 views)
2018-03-24 14:43:53

Solater (140 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!