mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
Converted sizeof and align to methods.
Override more methods in MappedObject subclasses, foreach is now 4 times faster.
This commit is contained in:
parent
20b9d3f89f
commit
896e363979
10 changed files with 184 additions and 122 deletions
|
|
@ -44,7 +44,7 @@ public class MappedObjectTests2 {
|
|||
|
||||
System.out.println(vecs.viewAddress); // test read-access
|
||||
|
||||
System.out.println(vecs.align); // test read-access
|
||||
System.out.println(vecs.getAlign()); // test read-access
|
||||
|
||||
System.out.println(MappedVec3.SIZEOF); // test read-access
|
||||
}
|
||||
|
|
@ -91,7 +91,7 @@ public class MappedObjectTests2 {
|
|||
vecs.view = 1;
|
||||
long a2 = vecs.viewAddress;
|
||||
assert (a2 - a1 == MappedVec3.SIZEOF);
|
||||
assert (a2 - a1 == vecs.sizeof);
|
||||
assert (a2 - a1 == vecs.getSizeof());
|
||||
vecs.view = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue