From: Peter <kaf...@xt...> - 2002-10-30 19:08:47
|
> > > One definite difference between my code and JCanyon is that I'm not > > using the NIO direct buffers, though OTOH I'm using display lists, so > > that shouldn't matter beyond the initial access. > > > > no, that is not correct. Java can move your vertex/normal/whatever arrays > around underneath you before your get the chance to call glArrayElement > (or > similar). As I said in my post, I'm using *Display Lists*. It doesn't matter what happens to the arrays after the lists are made (altering the arrays has no effect on the data stored in the list whatsoever) >NIO direct (allocated through ByteBuffer.allocateDirect) buffers > is > the only safe way to use arrays that must remain at the same address. So > in a > way you're lucky your display lists work. Why? The display list is made once, after which the address of the original source data is irrelevant because the source values are stored in the list. > None of this applies to your problem with stuttering though. Sorry, but as far as I can tell, unless you have a special version of openGL with mutable display lists, then I don't think any of it applies at all. Cheers, Peter. |