jPCT - a 3d engine for Java > Support

Low performance when using uncompiled objects

(1/8) > >>

Jakes:
Hello,

I've been using a lot jpct alongside other libs. The problem is, every time I use uncompiled objects, I experience some frame rate drops for a while (like 5/10 secs) and then it gets fine as it seems like its buffering building something on the fly.

Is this normal? Or is there anything I could do to minimize this?

Regards,
Jakes

EgonOlsen:
It might be normal, but it's difficult to say from a distance. If a hickup happens, is there some corresponding log output at the same moment?

Jakes:
There is a log, but there's nothing I could explicitly say for sure that could be the reason:


--- Code: ---Java version is: 1.7.0_80
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Using LWJGL's AWTGLCanvas
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Software renderer disposed
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
[ Sun Oct 13 18:23:57 BST 2019 ] - WARNING: Unsupported Texture width (206)...resizing to a width of 256 pixels!
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Loading Texture...from Image
Adding Lightsource: 0
Adding Lightsource: 1
Adding Lightsource: 2
Adding Lightsource: 3
Adding Lightsource: 4
Adding Lightsource: 5
Adding Lightsource: 6
Adding Lightsource: 7
Adding Lightsource: 8
Adding Lightsource: 9
Adding Lightsource: 10
Adding Lightsource: 11
Adding Lightsource: 12
Adding Lightsource: 13
Adding Lightsource: 14
Adding Lightsource: 15
Adding Lightsource: 16
Adding Lightsource: 17
Adding Lightsource: 18
Adding Lightsource: 19
Adding Lightsource: 20
Adding Lightsource: 21
Adding Lightsource: 22
Adding Lightsource: 23
Adding Lightsource: 24
Adding Lightsource: 25
Adding Lightsource: 26
Adding Lightsource: 27
Adding Lightsource: 28
Adding Lightsource: 29
Adding Lightsource: 30
Adding Lightsource: 31
Adding Lightsource: 32
Adding Lightsource: 33
Adding Lightsource: 34
Adding Lightsource: 35
Adding Lightsource: 36
Adding Lightsource: 37
Adding Lightsource: 38
Adding Lightsource: 39
Adding Lightsource: 40
Adding Lightsource: 41
Adding Lightsource: 42
Adding Lightsource: 43
Adding Lightsource: 44
Adding Lightsource: 45
Adding Lightsource: 46
Adding Lightsource: 47
Adding Lightsource: 48
Adding Lightsource: 49
Adding Lightsource: 50
Adding Lightsource: 51
Adding Lightsource: 52
Adding Lightsource: 53
Adding Lightsource: 54
Adding Lightsource: 55
Adding Lightsource: 0
Adding Lightsource: 1
Adding Lightsource: 2
Adding Lightsource: 3
Adding Lightsource: 4
Adding Lightsource: 5
Adding Lightsource: 6
Adding Lightsource: 7
Adding Lightsource: 8
Adding Lightsource: 9
Adding Lightsource: 10
Adding Lightsource: 11
Adding Lightsource: 12
Adding Lightsource: 13
Adding Lightsource: 14
Adding Lightsource: 0
Adding Lightsource: 1
Adding Lightsource: 2
Adding Lightsource: 3
Adding Lightsource: 4
Adding Lightsource: 5
Adding Lightsource: 6
Adding Lightsource: 7
Adding Lightsource: 8
Adding Lightsource: 9
Adding Lightsource: 10
Adding Lightsource: 11
Adding Lightsource: 12
Adding Lightsource: 13
Adding Lightsource: 14
Adding Lightsource: 15
Adding Lightsource: 16
Adding Lightsource: 17
Adding Lightsource: 18
Adding Lightsource: 19
Adding Lightsource: 20
Adding Lightsource: 21
Adding Lightsource: 22
Adding Lightsource: 23
Adding Lightsource: 24
Adding Lightsource: 25
Adding Lightsource: 26
Adding Lightsource: 27
Adding Lightsource: 28
Adding Lightsource: 29
Adding Lightsource: 30
Adding Lightsource: 31
Adding Lightsource: 32
Adding Lightsource: 33
Adding Lightsource: 34
Adding Lightsource: 35
Adding Lightsource: 36
Adding Lightsource: 37
Adding Lightsource: 38
Adding Lightsource: 39
Adding Lightsource: 40
Adding Lightsource: 41
Adding Lightsource: 42
Adding Lightsource: 43
Adding Lightsource: 44
Adding Lightsource: 45
Adding Lightsource: 46
Adding Lightsource: 47
Adding Lightsource: 48
New WorldProcessor created using 1 thread(s) and granularity of 1!
Waiting for renderer to initialize...0
Waiting for renderer to initialize...1
Driver is: igdumdim64/10.18.10.3496 on NVIDIA Corporation / GeForce 840M/PCIe/SSE2
GL_ARB_texture_env_combine supported and used!
FBO supported and used!
VBO supported and used!
OpenGL renderer initialized (using 4 texture stages)
Checking for triangle strip...
Not a triangle strip at position 1!
Subobject of object 34/object36 compiled to indexed data using 24/9 vertices in 0ms!
Object 34/object36 compiled to 1 subobjects in 123ms!
Creating new world processor buffer for thread Renderer Thread
Checking for triangle strip...
Not a triangle strip at position 1!

[...REPEATS the same 5 lines above, for 200+ times...]

VBO created for object 'object3526'
VBO created for object 'object3363'
VBO created for object 'object3328'
VBO created for object 'object3424'
VBO created for object 'object3427'
VBO created for object 'object3464'
VBO created for object 'object3467'
VBO created for object 'object3398'
VBO created for object 'object3523'
VBO created for object 'object3518'
VBO created for object 'object3344'
VBO created for object 'object3320'
VBO created for object 'object3390'
VBO created for object 'object3368'
VBO created for object 'object3387'
VBO created for object 'object1442'
VBO created for object 'object3315'
VBO created for object 'object2429'
VBO created for object 'object1263'
VBO created for object 'object3430'
VBO created for object 'object3555'
VBO created for object 'object2040'
VBO created for object 'object3446'
VBO created for object 'object3539'
VBO created for object 'object3502'
VBO created for object 'object3366'
VBO created for object 'object3331'
VBO created for object 'object3579'
VBO created for object 'object3520'
VBO created for object 'object3635'
VBO created for object 'object3611'
VBO created for object 'object40'
VBO created for object 'object1592'
VBO created for object 'object3576'
VBO created for object 'object3336'
VBO created for object 'object3379'
VBO created for object 'object3552'
VBO created for object 'object3531'
VBO created for object 'object3470'
VBO created for object 'object3606'
VBO created for object 'object3595'
VBO created for object 'object3440'
VBO created for object 'object3507'
VBO created for object 'object3632'
VBO created for object 'object3603'
VBO created for object 'object3563'
VBO created for object 'object3462'
VBO created for object 'object3616'
VBO created for object 'object1259'
VBO created for object 'object3590'
VBO created for object 'object3480'
VBO created for object 'object3600'
VBO created for object 'object3478'
VBO created for object 'object3488'
VBO created for object 'object41'
VBO created for object 'object3392'
VBO created for object 'object2427'
VBO created for object 'object3360'
VBO created for object 'object3475'
VBO created for object 'object3411'
VBO created for object 'object3494'
VBO created for object 'object3574'
VBO created for object 'object3483'
VBO created for object 'object3571'
VBO created for object 'object3598'
VBO created for object 'object3512'
VBO created for object 'object3419'
VBO created for object 'object3550'
VBO created for object 'object3624'
VBO created for object 'object43'
VBO created for object 'object3422'
VBO created for object 'object3323'
VBO created for object 'object3352'
VBO created for object 'object2437'
VBO created for object 'object38'
VBO created for object 'object1255'
VBO created for object 'object3384'
VBO created for object 'object3358'
VBO created for object 'object3558'
VBO created for object 'object36'
VBO created for object 'object3587'
VBO created for object 'object3630'
VBO created for object 'object3456'
VBO created for object 'object3614'
VBO created for object 'object3350'
VBO created for object 'object1257'
VBO created for object 'object3504'
VBO created for object 'object42'
VBO created for object 'object2435'
VBO created for object 'object3454'
VBO created for object 'object3472'
VBO created for object 'object3318'
VBO created for object 'object3608'
VBO created for object 'object3486'
VBO created for object 'object3403'
VBO created for object 'object3414'
VBO created for object 'object3515'
VBO created for object 'object3566'
VBO created for object 'object3542'
VBO created for object 'object3374'
VBO created for object 'object1590'
VBO created for object 'object3582'
VBO created for object 'object3496'
VBO created for object 'object3568'
VBO created for object 'object3451'
VBO created for object 'object3584'
VBO created for object 'object3536'
VBO created for object 'object3622'
VBO created for object 'object3400'
VBO created for object 'object3627'
VBO created for object 'object3592'
VBO created for object 'object3510'
VBO created for object 'object2062'
VBO created for object 'object3326'
VBO created for object 'object1440'
VBO created for object 'object3438'
VBO created for object 'object3376'
VBO created for object 'object3432'
VBO created for object 'object2431'
VBO created for object 'object3406'
VBO created for object 'object2433'
VBO created for object 'object1253'
VBO created for object 'object3408'
VBO created for object 'object3619'
VBO created for object 'object3499'
VBO created for object 'object3334'
VBO created for object 'object3547'
VBO created for object 'object3355'
VBO created for object 'object1261'
VBO created for object 'object3560'
VBO created for object 'object3528'
VBO created for object 'object3416'
VBO created for object 'object3339'
VBO created for object 'object3371'
VBO created for object 'object2038'
VBO created for object 'object3459'
VBO created for object 'object2064'
VBO created for object 'object3347'
VBO created for object 'object3534'
VBO created for object 'object3443'
VBO created for object 'object3448'
VBO created for object 'object3491'
VBO created for object 'object3382'
VBO created for object 'object3342'
VBO created for object 'object3544'
VBO created for object 'object3395'
VBO created for object 'object3435'
Compiled 147 VBO!
Max. anisotropy supported: 16
0(1) : warning C7554: OpenGL requires sampler variables to be explicitly declared as uniform


Shader program compiled and linked fine!
Tangent handle not found (tangents needed: false)!
Shader compiled!

--- End code ---

EgonOlsen:
I fail to the relation between the log output and your question, because your question was about uncompiled objects while the log shows the usage of compiled ones...

Jakes:
Yes, the reason is mainly because I wrote a procedure that either compiles all of the objects (when using compiled mode) or  only compiles sprites (billborded ones, because they're a part of a framework based pool Structure).

but I'm only using 200+ compiled vs the full 3400+ compiled scene, which is when its way smoother without any stutter os hickups.

which in this example, I have some hickups on the start as you said, but if I were to compile the full scene, I don't have any problem whatsoever.

Navigation

[0] Message Index

[#] Next page

Go to full version