Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (724)
Games in Android Showcase (216)
games submitted by our members
Games in WIP (790)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  performance dropping when camera move / rotate with frustum test  (Read 1844 times)
0 Members and 1 Guest are viewing this topic.
Offline oldteen

Innocent Bystander

« Posted 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.
Offline relminator
« Reply #1 - Posted 2013-07-12 16:02:03 »

Are you frustum checking every chunk per frame?
Offline Redocdam

Senior Devvie

Medals: 18

« Reply #2 - Posted 2013-07-12 17:28:38 »

Have you profiled it yet to see if you're encountering a garbage collection issue?
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

buddyBro (217 views)
2017-04-05 03:38:00

CopyableCougar4 (647 views)
2017-03-24 15:39:42

theagentd (641 views)
2017-03-24 15:32:08

Rule (692 views)
2017-03-19 12:43:22

Rule (667 views)
2017-03-19 12:42:17

Rule (670 views)
2017-03-19 12:36:21

theagentd (682 views)
2017-03-16 05:07:07

theagentd (615 views)
2017-03-15 22:37:06

theagentd (454 views)
2017-03-15 22:32:18

theagentd (383 views)
2017-03-15 22:31:11
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

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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!