I'm working on an application that is constantly updating vertex coordinates in a triangle mesh. The geometry is an IndexedTriangleArray and I've configured it with for update "BY_REFERENCE"
I implemented the GeometryUpdater interface and the program appears to run correctly except for a periodic pause every second or so. GC profiling indicates that a full GC pass is run and that the GC takes about .15 seconds to run. This appears to correspond to the pause that I'm seeing.
The attached test case demonstrates this problem. I started with the SUN "GeometryByReferenceTest" demo and hacked it down to get
rid of the U/I stuff. I added a "NullUpdateBehavior" that calls the updateData method on the geometry every frame. I don't actually do anything to the updateData method... just call it. The NullUpdateBehavior also rotates the shape a little every frame just to highlight the pause.
Without the call to "updateData" the app runs smoothly. I've only seen the problem appear with _Indexed_ geometry.
I took a look through the bug data base and didn't see anything that looked relevant.
Any ideas?
Mark
-----------------------------------------------------------------------------------
Mark A. Tarlton,
Visual Communications and Display Lab, Motorola Labs,
<<NullUpdateBehavior.java>> <<GeometryByReferenceTest.java>>
NullUpdateBehavior.java
Description: Binary data
GeometryByReferenceTest.java
Description: Binary data
