|
|
@ -32,17 +32,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
package jme3test.app; |
|
|
|
package jme3test.app; |
|
|
|
|
|
|
|
|
|
|
|
import jme3test.model.shape.*; |
|
|
|
|
|
|
|
import com.jme3.app.SimpleApplication; |
|
|
|
import com.jme3.app.SimpleApplication; |
|
|
|
import com.jme3.material.Material; |
|
|
|
import com.jme3.material.Material; |
|
|
|
import com.jme3.math.Vector3f; |
|
|
|
import com.jme3.math.Vector3f; |
|
|
|
import com.jme3.scene.Geometry; |
|
|
|
import com.jme3.scene.Geometry; |
|
|
|
import com.jme3.scene.shape.Box; |
|
|
|
import com.jme3.scene.shape.Box; |
|
|
|
import com.jme3.util.BufferUtils; |
|
|
|
import com.jme3.util.BufferUtils; |
|
|
|
import java.lang.reflect.InvocationTargetException; |
|
|
|
|
|
|
|
import java.nio.ByteBuffer; |
|
|
|
import java.nio.ByteBuffer; |
|
|
|
import java.util.logging.Level; |
|
|
|
|
|
|
|
import java.util.logging.Logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TestReleaseDirectMemory extends SimpleApplication { |
|
|
|
public class TestReleaseDirectMemory extends SimpleApplication { |
|
|
|
|
|
|
|
|
|
|
@ -64,7 +60,7 @@ public class TestReleaseDirectMemory extends SimpleApplication { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void simpleUpdate(float tpf) { |
|
|
|
public void simpleUpdate(float tpf) { |
|
|
|
ByteBuffer buf = BufferUtils.createByteBuffer(500000); |
|
|
|
ByteBuffer buf = BufferUtils.createByteBuffer(500000); |
|
|
|
BufferUtils.destroyDirectByteBuffer(buf); |
|
|
|
BufferUtils.destroyByteBuffer(buf); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|