docs: MapRenderer
This commit is contained in:
parent
4688943290
commit
879e0ccb81
@ -55,12 +55,15 @@ public class MapRenderer {
|
|||||||
public static long frametime;
|
public static long frametime;
|
||||||
private static boolean rerender;
|
private static boolean rerender;
|
||||||
|
|
||||||
// Do not use the same buffer to upload data within a frame twice
|
/**
|
||||||
// - Contrary to what the OpenGL doc says data seems *not* to be
|
* Pool to retrieve temporary native buffer on GL-Thread:
|
||||||
// *always* copied after glBufferData returns...
|
* This pool ensures to not use the same buffer to upload data twice
|
||||||
// - Somehow it does always copy when using Android GL bindings
|
* within a frame.
|
||||||
// but not when using libgdx bindings (LWJGL or AndroidGL20)
|
* - Contrary to what the OpenGL doc says data seems *not* to be
|
||||||
|
* always* copied after glBufferData returns...
|
||||||
|
* - Somehow it does always copy when using Android GL bindings
|
||||||
|
* but not when using libgdx bindings (LWJGL or AndroidGL20)
|
||||||
|
*/
|
||||||
static class BufferPool extends Pool<BufferItem> {
|
static class BufferPool extends Pool<BufferItem> {
|
||||||
private BufferItem mUsedBuffers;
|
private BufferItem mUsedBuffers;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user