Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kkl

Pages: 1 ... 5 6 [7] 8 9 ... 20
91
Support / Re: Rendering stutter at the beginning
« on: November 03, 2014, 03:40:30 pm »
Thanks alot egon. Tat solves everything ; )

92
Support / Re: Pre-etc1-compressed texture
« on: November 03, 2014, 03:23:36 pm »
That's too bad~ Really hope JPCT would support pre-compressed texture some day in the future ; )

Just another humble suggestion, how about if we have Texture class to have input from android.R.drawable as id. We can add one setting to determine we should grab the texels on demand. In that case, we can skip the virtualization part and save storage and processing power, bcause I notice storing texels can take some times too.

For illustration example:
Code: [Select]
Config.shouldVirtualizeTexture = true;
Texture t = new Texture(R.drawable.texture1);
//At this point, no texels are grabbed yet, but drawable id is saved.

//1. Later in uploading textures, grab bitmap from android.R.drawable and texels from the bitmap after that in Texture class.
//2. Upload the texels to GPU.
//3. Then dispose the texels and move to next textures.

What do you think? Is it going to be faster in this case? : )

93
Support / Re: Rendering stutter at the beginning
« on: November 03, 2014, 02:00:24 pm »
Is it safe/redundant to call the method for multiple time for the same shader object?

I have a few custom shaders in which a few default uniforms and attributes are removed. Does the compilation affect that?

94
Support / Re: Rendering stutter at the beginning
« on: November 03, 2014, 11:30:19 am »
Yup, that works! No more stuttering anymore. BTW, it's actually quite difficult to implement the function as I have many objects with different shaders. Can we have a generic function like compileAllObjects to compile the shaders and vertex attributes automatically? Is it difficult to implement?

95
Support / Re: Rendering stutter at the beginning
« on: November 02, 2014, 03:27:02 pm »
Mayb I got the context wrong. Does compileAllObjects() compile shader and creating VBO buffer? From your explanation, I mayb referred to uploading data to gpu.

Here's the log for more details. It was drawing frame and it stuttered a short while to create buffer and upload VBO (the log with com.kisionlab shows it is drawing)
Code: [Select]
11-02 22:15:43.781: V/Kision(29094): com.kisionlab.oceanblue3d.SceneSettingRenderer@4327ae30: 58fps, slept: 6
11-02 22:15:44.796: V/Kision(29094): com.kisionlab.oceanblue3d.SceneSettingRenderer@4327ae30: 58fps, slept: 4
11-02 22:15:45.811: V/Kision(29094): com.kisionlab.oceanblue3d.SceneSettingRenderer@4327ae30: 56fps, slept: 8
11-02 22:15:45.951: I/jPCT-AE(29094): Compiling shader program!
11-02 22:15:46.206: I/jPCT-AE(29094): Handles of 2940042: 3/47/5
11-02 22:15:46.206: I/jPCT-AE(29094): Creating buffers...
11-02 22:15:46.206: I/jPCT-AE(29094): VBO created for object 'goggles'
11-02 22:15:46.211: I/jPCT-AE(29094): Creating attribute/handle mapping!
11-02 22:15:46.826: V/Kision(29094): com.kisionlab.oceanblue3d.SceneSettingRenderer@4327ae30: 44fps, slept: 5
11-02 22:15:47.831: V/Kision(29094): com.kisionlab.oceanblue3d.SceneSettingRenderer@4327ae30: 58fps, slept: 5
11-02 22:15:48.841: V/Kision(29094): com.kisionlab.oceanblue3d.SceneSettingRenderer@4327ae30: 57fps, slept: 3

My question is, is there any way to upload the VBO and compile the shader before frame drawing happens?

96
Support / Re: Pre-etc1-compressed texture
« on: November 02, 2014, 02:58:41 pm »
Wao, it's 2x faster now! But only for subsequent use. It's alot slower for the 1st time. I guess I could stick with this for now. Are you planning to support pre-compressed texture anytime soon, or it's long way to go?

97
Support / Re: Rendering stutter at the beginning
« on: November 02, 2014, 02:31:41 pm »
it happens in app's first start. The log happens during rendering (onDrawFrame), also the time when I see the stutter. Do you compile object if object is not visible at the beginning?

98
Support / Pre-etc1-compressed texture
« on: November 02, 2014, 01:01:41 pm »
Hi Egon,

It seems like compressing texture takes a big amount of time to process. According to log, it takes around ~2306ms just to compress all textures. It would be great if we can provide the pre-compressed texture so it would be faster to process and we can save more battery. In my case, user will check how much battery my live wallpaper will consume in the phone settings. If users open and close the live wallpaper for multiple times, the battery consumption shoots really high because of the app initialization, which they will start complaining about the app.

For reference, here's the log during texture compression (Tested on Samsung Galaxy S4 with octa cores):
Code: [Select]
11-02 19:25:22.366: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.366: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:22.366: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:22.401: I/jPCT-AE(32481): ...done in 35/31ms
11-02 19:25:22.401: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:22.401: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:22.416: I/jPCT-AE(32481): ...done in 13/11ms
11-02 19:25:22.416: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:22.416: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 3/3ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:22.421: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:22.421: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:22.421: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:22.426: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.426: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:22.426: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:22.426: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.436: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.436: I/jPCT-AE(32481): Compressing texture (256*256) to ETC1...
11-02 19:25:22.436: I/jPCT-AE(32481): Creating byte buffer of size 196608
11-02 19:25:22.576: I/jPCT-AE(32481): ...done in 137/113ms
11-02 19:25:22.576: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:22.576: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:22.611: I/jPCT-AE(32481): ...done in 33/28ms
11-02 19:25:22.611: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:22.611: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:22.621: I/jPCT-AE(32481): ...done in 10/7ms
11-02 19:25:22.621: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:22.621: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:22.621: I/jPCT-AE(32481): ...done in 3/2ms
11-02 19:25:22.621: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:22.621: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:22.626: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:22.626: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:22.626: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:22.626: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:22.626: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:22.626: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:22.626: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.626: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:22.626: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:22.626: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.626: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:22.626: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:22.626: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.636: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.646: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.646: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:22.646: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:22.681: I/jPCT-AE(32481): ...done in 34/29ms
11-02 19:25:22.681: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:22.681: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:22.691: I/jPCT-AE(32481): ...done in 10/7ms
11-02 19:25:22.691: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:22.691: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:22.691: I/jPCT-AE(32481): ...done in 3/2ms
11-02 19:25:22.691: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:22.691: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:22.696: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:22.696: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:22.696: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:22.696: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:22.696: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:22.696: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:22.696: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.696: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:22.696: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:22.696: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:22.696: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:22.696: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:22.696: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.706: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.741: D/dalvikvm(32481): GC_FOR_ALLOC freed 8063K, 34% free 28251K/42784K, paused 36ms, total 36ms
11-02 19:25:22.746: I/jPCT-AE(32481): Compressing texture (256*256) to ETC1...
11-02 19:25:22.746: I/jPCT-AE(32481): Creating byte buffer of size 196608
11-02 19:25:22.871: I/jPCT-AE(32481): ...done in 128/107ms
11-02 19:25:22.876: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:22.876: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:22.906: I/jPCT-AE(32481): ...done in 32/27ms
11-02 19:25:22.906: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:22.906: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:22.916: I/jPCT-AE(32481): ...done in 9/7ms
11-02 19:25:22.916: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:22.916: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:22.916: I/jPCT-AE(32481): ...done in 2/1ms
11-02 19:25:22.921: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:22.921: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:22.921: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:22.921: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:22.921: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:22.921: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:22.921: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:22.921: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:22.921: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.921: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:22.921: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:22.921: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.921: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:22.921: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:22.921: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:22.931: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.941: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:22.946: I/jPCT-AE(32481): Compressing texture (256*256) to ETC1...
11-02 19:25:22.946: I/jPCT-AE(32481): Creating byte buffer of size 196608
11-02 19:25:23.081: I/jPCT-AE(32481): ...done in 132/112ms
11-02 19:25:23.081: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:23.081: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:23.126: D/dalvikvm(32481): GC_FOR_ALLOC freed 3452K, 27% free 28635K/38908K, paused 44ms, total 44ms
11-02 19:25:23.161: I/jPCT-AE(32481): ...done in 81/31ms
11-02 19:25:23.166: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:23.166: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:23.176: I/jPCT-AE(32481): ...done in 10/7ms
11-02 19:25:23.176: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:23.176: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:23.176: I/jPCT-AE(32481): ...done in 2/2ms
11-02 19:25:23.176: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:23.176: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:23.181: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:23.181: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:23.181: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:23.181: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.181: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:23.181: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:23.181: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.181: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:23.181: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:23.181: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.181: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:23.181: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:23.181: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.191: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:23.201: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:23.201: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:23.201: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:23.231: I/jPCT-AE(32481): ...done in 32/27ms
11-02 19:25:23.236: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:23.236: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:23.241: I/jPCT-AE(32481): ...done in 10/7ms
11-02 19:25:23.246: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:23.246: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:23.246: I/jPCT-AE(32481): ...done in 3/2ms
11-02 19:25:23.246: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:23.246: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:23.246: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:23.246: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:23.246: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:23.246: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:23.246: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:23.246: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:23.251: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.251: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:23.251: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:23.251: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.251: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:23.251: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:23.251: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.251: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:23.256: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:23.291: D/dalvikvm(32481): GC_FOR_ALLOC freed 3336K, 29% free 27742K/38908K, paused 34ms, total 34ms
11-02 19:25:23.321: D/dalvikvm(32481): GC_FOR_ALLOC freed <1K, 26% free 29790K/39936K, paused 21ms, total 21ms
11-02 19:25:23.336: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:23.346: I/jPCT-AE(32481): Compressing texture (512*512) to ETC1...
11-02 19:25:23.346: I/jPCT-AE(32481): Creating byte buffer of size 786432
11-02 19:25:23.801: I/jPCT-AE(32481): ...done in 458/392ms
11-02 19:25:23.811: I/jPCT-AE(32481): Compressing texture (256*256) to ETC1...
11-02 19:25:23.811: I/jPCT-AE(32481): Creating byte buffer of size 196608
11-02 19:25:23.931: I/jPCT-AE(32481): ...done in 123/105ms
11-02 19:25:23.936: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:23.936: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:23.971: I/jPCT-AE(32481): ...done in 33/26ms
11-02 19:25:23.971: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:23.971: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:23.981: I/jPCT-AE(32481): ...done in 9/6ms
11-02 19:25:23.981: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:23.981: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:23.981: I/jPCT-AE(32481): ...done in 2/2ms
11-02 19:25:23.981: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:23.981: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:23.981: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:23.981: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:23.981: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:23.981: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:23.986: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:23.986: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:23.986: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:23.986: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:23.986: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:23.986: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:23.986: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:23.986: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:23.986: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:24.021: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:24.061: D/dalvikvm(32481): GC_FOR_ALLOC freed 9067K, 38% free 29788K/47904K, paused 39ms, total 39ms
11-02 19:25:24.071: I/jPCT-AE(32481): Compressing texture (512*512) to ETC1...
11-02 19:25:24.076: I/jPCT-AE(32481): Creating byte buffer of size 786432
11-02 19:25:24.611: I/jPCT-AE(32481): ...done in 539/446ms
11-02 19:25:24.621: I/jPCT-AE(32481): Compressing texture (256*256) to ETC1...
11-02 19:25:24.621: I/jPCT-AE(32481): Creating byte buffer of size 196608
11-02 19:25:24.776: I/jPCT-AE(32481): ...done in 156/110ms
11-02 19:25:24.781: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:24.781: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:24.811: I/jPCT-AE(32481): ...done in 34/28ms
11-02 19:25:24.811: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:24.811: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:24.821: I/jPCT-AE(32481): ...done in 9/7ms
11-02 19:25:24.821: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:24.821: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:24.826: I/jPCT-AE(32481): ...done in 3/2ms
11-02 19:25:24.826: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:24.826: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:24.826: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:24.826: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:24.826: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:24.826: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:24.826: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:24.826: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:24.826: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:24.826: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:24.826: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:24.826: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:24.826: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:24.826: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:24.826: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:24.826: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:24.831: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:24.841: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:24.881: D/dalvikvm(32481): GC_FOR_ALLOC freed 5811K, 28% free 28253K/38908K, paused 39ms, total 39ms
11-02 19:25:24.931: D/dalvikvm(32481): GC_FOR_ALLOC freed 769K, 27% free 28767K/38908K, paused 34ms, total 34ms
11-02 19:25:24.931: I/dalvikvm-heap(32481): Grow heap (frag case) to 31.087MB for 1048592-byte allocation
11-02 19:25:24.971: D/dalvikvm(32481): GC_FOR_ALLOC freed 0K, 26% free 29791K/39936K, paused 39ms, total 39ms
11-02 19:25:24.986: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:25.006: I/jPCT-AE(32481): Compressing texture (512*512) to ETC1...
11-02 19:25:25.006: I/jPCT-AE(32481): Creating byte buffer of size 786432
11-02 19:25:25.546: I/jPCT-AE(32481): ...done in 539/444ms
11-02 19:25:25.551: I/jPCT-AE(32481): Compressing texture (256*256) to ETC1...
11-02 19:25:25.551: I/jPCT-AE(32481): Creating byte buffer of size 196608
11-02 19:25:25.671: I/jPCT-AE(32481): ...done in 120/101ms
11-02 19:25:25.676: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:25.676: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:25.706: I/jPCT-AE(32481): ...done in 30/25ms
11-02 19:25:25.706: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:25.706: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:25.716: I/jPCT-AE(32481): ...done in 8/6ms
11-02 19:25:25.716: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:25.716: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:25.716: I/jPCT-AE(32481): ...done in 3/2ms
11-02 19:25:25.716: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:25.716: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:25.716: I/jPCT-AE(32481): ...done in 1/1ms
11-02 19:25:25.721: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:25.721: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:25.721: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:25.721: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:25.721: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:25.721: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:25.721: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:25.721: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:25.721: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:25.721: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:25.721: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:25.721: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:25.726: I/jPCT-AE(32481): Retrieved texture data from disk!
11-02 19:25:25.726: I/jPCT-AE(32481): Compressing texture (128*128) to ETC1...
11-02 19:25:25.726: I/jPCT-AE(32481): Creating byte buffer of size 49152
11-02 19:25:25.756: I/jPCT-AE(32481): ...done in 28/23ms
11-02 19:25:25.756: I/jPCT-AE(32481): Compressing texture (64*64) to ETC1...
11-02 19:25:25.756: I/jPCT-AE(32481): Creating byte buffer of size 12288
11-02 19:25:25.761: I/jPCT-AE(32481): ...done in 8/6ms
11-02 19:25:25.761: I/jPCT-AE(32481): Compressing texture (32*32) to ETC1...
11-02 19:25:25.761: I/jPCT-AE(32481): Creating byte buffer of size 3072
11-02 19:25:25.766: I/jPCT-AE(32481): ...done in 2/2ms
11-02 19:25:25.766: I/jPCT-AE(32481): Compressing texture (16*16) to ETC1...
11-02 19:25:25.766: I/jPCT-AE(32481): Creating byte buffer of size 768
11-02 19:25:25.766: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:25.766: I/jPCT-AE(32481): Compressing texture (8*8) to ETC1...
11-02 19:25:25.766: I/jPCT-AE(32481): Creating byte buffer of size 192
11-02 19:25:25.766: I/jPCT-AE(32481): ...done in 1/0ms
11-02 19:25:25.766: I/jPCT-AE(32481): Compressing texture (4*4) to ETC1...
11-02 19:25:25.766: I/jPCT-AE(32481): Creating byte buffer of size 48
11-02 19:25:25.766: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:25.766: I/jPCT-AE(32481): Compressing texture (2*2) to ETC1...
11-02 19:25:25.766: I/jPCT-AE(32481): Creating byte buffer of size 12
11-02 19:25:25.766: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:25.766: I/jPCT-AE(32481): Compressing texture (1*1) to ETC1...
11-02 19:25:25.766: I/jPCT-AE(32481): Creating byte buffer of size 3
11-02 19:25:25.771: I/jPCT-AE(32481): ...done in 0/0ms
11-02 19:25:25.771: I/jPCT-AE(32481): Pre-warming done!

99
Support / Rendering stutter at the beginning
« on: November 02, 2014, 12:36:19 pm »
Hi Egon,

I have an issue where the rendering stutters at the beginning of the onDrawFrame. I checked from log and found out it compiles shader and create buffer for VBO during rendering when object become visible. Is there any way to compile everything including shader and VBO in surfaceChanged before it starts rendering frame? I tried to call buildAllObjects() and compileAllObjects() but it seems not helping.

Here's the log during rendering:
Code: [Select]
11-02 19:25:50.231: I/jPCT-AE(32481): Compiling shader program!
11-02 19:25:50.231: I/jPCT-AE(32481): Handles of 2520036: 3/28/5
11-02 19:25:50.231: I/jPCT-AE(32481): Creating buffers...
11-02 19:25:50.231: I/jPCT-AE(32481): VBO created for object 'foreground_fish_1'

100
I guess I have to use normal map without compression then. Thanks alot egon.

101
Quote
It's usually better looking then using 16bit textures, but it depends on the texture's content.
Depend on texture content? Does it mean if the texture have less distinct color, then the texture might get alot different than the original?

102
Support / Texture pixelated or weird for etc1 compressed normal bump map
« on: September 26, 2014, 05:30:43 pm »
Hi Egon,

I set my texture to mipmap and setTextureCompression(true), and it seems like the texture is pixelated and sometimes looks weird (some black area on part of the texture) for normal map, but it does not have the issue when compression is off. I'm using the shader code from http://www.jpct.net/wiki/index.php/Shaders. In addition, I tried out with the hello shader by setting all textures with etc1 compression, it looks quite different than what it is in without the compression. Is it normal that etc1 compression will lose texture quality? However, if the normal texture is compressed, it looks ok.

103
Support / Re: Texture becomes blur and pixelated after many onResume
« on: September 05, 2014, 06:57:58 pm »
Ahh.. I could do that. Missed that part. Thanks alot egon.

104
Support / Re: Texture becomes blur and pixelated after many onResume
« on: September 05, 2014, 03:21:19 am »
Okay, I thought it was always a separate compilation. How about the clear translation in texture matrix?

105
Support / Re: Texture becomes blur and pixelated after many onResume
« on: September 04, 2014, 07:43:20 pm »
It was about the cache compression IO performance fix, if im not mistaken.

Here's the post: http://www.jpct.net/forum2/index.php/topic,3341.msg26761.html#msg26761

Pages: 1 ... 5 6 [7] 8 9 ... 20