From b0f2e17db25bb5b81b05a48a62b367cdd350ec58 Mon Sep 17 00:00:00 2001 From: "sha..RD" Date: Thu, 18 Apr 2013 02:56:54 +0000 Subject: [PATCH] * List of native objects in NativeObjectManager is now a HashSet instead of an ArrayList, for faster add/remove calls git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10549 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/util/NativeObjectManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/core/com/jme3/util/NativeObjectManager.java b/engine/src/core/com/jme3/util/NativeObjectManager.java index ace5884cc..8dc7d8757 100644 --- a/engine/src/core/com/jme3/util/NativeObjectManager.java +++ b/engine/src/core/com/jme3/util/NativeObjectManager.java @@ -31,11 +31,11 @@ */ package com.jme3.util; -import com.jme3.renderer.Renderer; +import com.jme3.scene.VertexBuffer; import java.lang.ref.PhantomReference; import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; -import java.util.ArrayList; +import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; @@ -66,8 +66,8 @@ public class NativeObjectManager { /** * List of currently active GLObjects. */ - private ArrayList refList - = new ArrayList(); + private HashSet refList + = new HashSet(); private class NativeObjectRef extends PhantomReference{