Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 / JOGL Development / Re: Building a plugin architecture on: 2005-10-21 17:59:10
does obfuscation prevent you from writing your own loader? or is that reflection?

if neither, that's how my plugin system works.
2  Java Game APIs & Engines / JOGL Development / Re: Poor VBO performance on: 2005-09-09 22:56:11
I've switched to using just a thread with an inner loop calling GLDisplay.display() rather than an animator, with no significant performance improvement. 

I was able to run both VAR demos and the JOGL demo is actually faster.

I'm going to put together a jar containing a minimal implementation of what I'm doing, which I'll try to post here.  It would be great if I can get this solved.
3  Java Game APIs & Engines / JOGL Development / Re: Poor VBO performance on: 2005-09-09 20:45:05
I only used -Xprof when I was trying to find out what the slowest part of the display loop was. 

Up until now I've actually been using the Animator class.  I was aware of the overhead issues, but since all of my work is done synchronously in the display loop, its hold on the CPU didn't seem to be a huge factor, although I may be severely misinterpreting things.  I'll change that implementation to check for improvements.

I'll see what else I can narrow things down to.

4  Java Game APIs & Engines / JOGL Development / Re: Poor VBO performance on: 2005-09-09 17:40:27
Apparantly, I'm a jogl version behind. 

Windows XP is the OS.
jdk 1.5.0_03

FPS of the VBO demo is ~33

running java with :  java -server -Xmx1000m -Dsun.java2d.noddraw=true

Output of PrintExt:

JOGL version 1.1.0
Using single-threaded workaround of dispatching display() on event thread
GL vendor: NVIDIA Corporation
GL version: 1.5.1
GL renderer: Quadro FX 500/FX 600/AGP/SSE2
GL extensions:
  GL_ARB_depth_texture                    GL_ARB_fragment_program
  GL_ARB_fragment_program_shadow          GL_ARB_fragment_shader
  GL_ARB_imaging                          GL_ARB_multisample
  GL_ARB_multitexture                     GL_ARB_occlusion_query
  GL_ARB_point_parameters                 GL_ARB_point_sprite
  GL_ARB_shadow                           GL_ARB_shader_objects
  GL_ARB_shading_language_100             GL_ARB_texture_border_clamp
  GL_ARB_texture_compression              GL_ARB_texture_cube_map
  GL_ARB_texture_env_add                  GL_ARB_texture_env_combine
  GL_ARB_texture_env_dot3                 GL_ARB_texture_mirrored_repeat
  GL_ARB_transpose_matrix                 GL_ARB_vertex_buffer_object
  GL_ARB_vertex_program                   GL_ARB_vertex_shader
  GL_ARB_window_pos                       GL_S3_s3tc
  GL_EXT_texture_env_add                  GL_EXT_abgr
  GL_EXT_bgra                             GL_EXT_blend_color
  GL_EXT_blend_func_separate              GL_EXT_blend_minmax
  GL_EXT_blend_subtract                   GL_EXT_compiled_vertex_array
  GL_EXT_Cg_shader                        GL_EXT_draw_range_elements
  GL_EXT_fog_coord                        GL_EXT_multi_draw_arrays
  GL_EXT_packed_pixels                    GL_EXT_paletted_texture
  GL_EXT_pixel_buffer_object              GL_EXT_point_parameters
  GL_EXT_rescale_normal                   GL_EXT_secondary_color
  GL_EXT_separate_specular_color          GL_EXT_shadow_funcs
  GL_EXT_shared_texture_palette           GL_EXT_stencil_two_side
  GL_EXT_stencil_wrap                     GL_EXT_texture3D
  GL_EXT_texture_compression_s3tc         GL_EXT_texture_cube_map
  GL_EXT_texture_edge_clamp               GL_EXT_texture_env_combine
  GL_EXT_texture_env_dot3                 GL_EXT_texture_filter_anisotropic
  GL_EXT_texture_lod                      GL_EXT_texture_lod_bias
  GL_EXT_texture_object                   GL_EXT_vertex_array
  GL_HP_occlusion_test                    GL_IBM_rasterpos_clip
  GL_IBM_texture_mirrored_repeat          GL_KTX_buffer_region
  GL_NV_blend_square                      GL_NV_copy_depth_to_color
  GL_NV_depth_clamp                       GL_NV_fence
  GL_NV_float_buffer                      GL_NV_fog_distance
  GL_NV_fragment_program                  GL_NV_fragment_program_option
  GL_NV_half_float                        GL_NV_light_max_exponent
  GL_NV_multisample_filter_hint           GL_NV_occlusion_query
  GL_NV_packed_depth_stencil              GL_NV_pixel_data_range
  GL_NV_point_sprite                      GL_NV_primitive_restart
  GL_NV_register_combiners                GL_NV_register_combiners2
  GL_NV_texgen_reflection                 GL_NV_texture_compression_vtc
  GL_NV_texture_env_combine4              GL_NV_texture_expand_normal
  GL_NV_texture_rectangle                 GL_NV_texture_shader
  GL_NV_texture_shader2                   GL_NV_texture_shader3
  GL_NV_vertex_array_range                GL_NV_vertex_array_range2
  GL_NV_vertex_program                    GL_NV_vertex_program1_1
  GL_NV_vertex_program2                   GL_NV_vertex_program2_option
  GL_SGIS_generate_mipmap                 GL_SGIS_texture_lod
  GL_SGIX_depth_texture                   GL_SGIX_shadow
  GL_SUN_slice_accum                      GL_WIN_swap_hint
  WGL_EXT_swap_control                    GL_Autodesk_valid_back_buffer_hint
5  Java Game APIs & Engines / JOGL Development / Poor VBO performance on: 2005-09-09 15:24:57
I recently ported my group's very performance-intensive rendering system from GL4Java to JOGL.  Having experienced a serious decrease in the performance of vertex arrays after the switch, I've been migrating the code over to use VBO's.  However, I have not yet been able to attain adequate frame rates for our needs.

All of the objects I've been rendering are in the form of stripped geometry, so the code to draw a single object is currently:

   gl.glBindBufferARB(GL.GL_ARRAY_BUFFER_ARB,;                                 //data vbo
   gl.glVertexPointer(3,GL.GL_FLOAT,0,BufferUtils.bufferOffset(0));                        //data is generally organized in buffer as (vertices[0-n],texcoords[0-n],colors[0-n])
   gl.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER_ARB, vbo.indexID); //all the indices for all the strips

        //then, since not all of the strips use the same primitive type, there's a loop
       for (int n = 0; n < vbo.stripTypes.length; n++){
                   vbo.capacity[n],                                                                                  //the length of the current strip
                   vbo.offset[n]);                                                                                     //an array of ByteBuffers preloaded with output from BufferUtils.bufferOffset

   gl.glBindBufferARB(GL.GL_ARRAY_BUFFER_ARB, 0);

The models we're drawing range from 6k faces to 40k faces.  In some of the projects, we are able to use static VBO's, but in many cases, we dynamically deform the geometry, and thus use streaming VBOs. 

In the old GL4Java code, we were able to get suitable performance by using display lists of vertex array rendered geometry for static geometry, and just vertex arrays for the dynamic geometry.  However, in the new VBO-based JOGL code, vertex arrays are unbearably slow for the deforming geometry (like 12fps for one model, when I need to draw dozens), and VBO's and DisplayLists don't seem to play well together (the displaylist performance tanks).

Unfortunately, removing display lists entirely, and trying to render absolutely everything as VBO's does not reach our performance needs.  Running -Xprof reveals that 70% of the time is spent in dispatch_glDrawRangeElements . 

Any recommendations on what I may be doing wrong, or what I can do to improve performance?

Pages: [1]
DesertCoockie (22 views)
2018-05-13 18:23:11

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

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

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

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

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

Solater (97 views)
2018-03-17 05:04:08

nelsongames (178 views)
2018-03-05 17:56:34

Gornova (388 views)
2018-03-02 22:15:33

buddyBro (1048 views)
2018-02-28 16:59:18
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!