tiatin
9c669547ab
Changed iteration over List from for-each to manual iteration.
...
For-Each loop creates Iterator object and uses hasNext and next methods, which are slower, than manual iteration. Also allocating Iterator object increases work for GC.
Forum post: https://hub.jmonkeyengine.org/t/iteration-over-list-performance-improvement/36250
See test 9 for more details: http://www.devahead.com/blog/2011/12/coding-for-performance-and-avoiding-garbage-collection-in-android/
9 years ago
NemesisMate
ce82a8a7b9
improved the setUserData method.
9 years ago
Riccardo Balbo
f3319d3fd6
Fix npe
9 years ago
NemesisMate
cdc708dcda
userdata to null again once all data is removed.
9 years ago
shamanDevel
a8d77a7cd1
OpenCLObject.register() now returns this.
...
This allows to chain the register method like kernel=program.createKernel("ScaleKernel").register(); or testBuffer=clContext.createBuffer(1024).register();
9 years ago
shamanDevel
46db6d95f8
Added getter method for the device associated with a command queue
9 years ago
shamanDevel
eb07d69cd8
missing toString() methods added
9 years ago
jjYBdx4IL
a20a84cf42
fixes issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/506 : Material->toString() does not prevent/check for possible NPEs
9 years ago
Nehon
619a323b9d
Fixed an issue when resizing the viewport, with a FPP and antialiasing would stop rendering
9 years ago
MeFisto94
9e187647d0
Fix Hardware Skinning in 3.1 by implementing proper Array Serialization for MatParams and making the Shared Materials Check only a warning (it would pop up once each time you load the j3o and if you really use Shared Materials you have weird animations and some log spamming)
9 years ago
shamanDevel
66b8447caa
Added pre-order traversal as an alternative to the default post-order depth first search traversal
9 years ago
Rémy Bouquet
334cad4657
proper equal and hashcode for ShaderNodesVariables.
9 years ago
Dokthar
63fb53f6e4
more typo ... ytpo ytop opyt ;)
9 years ago
Dokthar
a52a51cb27
typo fix in materials & shaders, also fix some javadoc
9 years ago
shamanDevel
732e75fba6
fixed unmapping of buffer objects and an error in setArg in Lwjgl3's Kernel
9 years ago
shamanDevel
250c871cab
Added a library for Matrix4f
9 years ago
shamanDevel
4e55e0e5a0
added library for Matrix3f, fixed some bugs
9 years ago
Nehon
8d01c5a26f
MatDef is not Savable anymore. Kind of reverted previous commit and implemented and very straight forward exporter for J3mds that doesn't use the Savable process of jme3 since it's designed to save the whole graph and not only subparts of it like materials and material defs. The API stays the same though
9 years ago
shamanDevel
c162d474c7
added matrix support for kernel arguments (mapped to float16)
9 years ago
shamanDevel
44899098e2
added dependency resolving and a random number library
9 years ago
Nehon
0e064e2d6a
MaterialDef is now savable
9 years ago
shamanDevel
e35bb7dcbc
added a constructor that disables the program cache: used during development
9 years ago
shamanDevel
a2df82b9e0
implemented a cache for program objects
9 years ago
shamanDevel
22307257e0
added querying of the program binaries and building the programs from these binaries.
...
TestVertexBufferSharing shows how this is used to build a simple program cache.
9 years ago
shamanDevel
54113f35e0
added alternative versions for kernel launches and resource acquiring that do not return an event. This improves the performance.
9 years ago
shamanDevel
4be6013068
reworked releasing system.
...
Now one has to either release a native OpenCLObject manually with release() or register it for automatic garbage collection using register().
These changes greatly improve the performance by reducing the load on the OpenCLObjectManager.
9 years ago
Kirill Vainer
c843721806
build: check file exists before getting text
9 years ago
Kirill Vainer
74e398342f
build: only update version file when it changed
...
Avoids recompiling jme3-core on every build
9 years ago
shamanDevel
7fc7402855
changed author name
9 years ago
shamanDevel
1093c639eb
finished documentation
9 years ago
shamanDevel
510c40955f
some more documentation
9 years ago
Dokthar
256abb38fa
joystick : added mapping for two gamepads
...
- the "GASIA CORP. PLAYSTATION(R)3 Controller"
- the "DragonRise Inc. Generic USB Joystick"
9 years ago
Dokthar
5e594a87d2
joystick : add trim() to each joystick name input
9 years ago
shamanDevel
ee43853ff1
docs, docs, docs
9 years ago
shamanDevel
196cbc8042
started with the documentation
9 years ago
Kirill Vainer
d044ad13e1
Fix issue #479
9 years ago
shamanDevel
60f10bb604
renamed DefaultPlatformChooser and moved it to the core, some small fixes
9 years ago
shamanDevel
0c47bf18c9
added memory managing: native resources are now automatically released
9 years ago
shamanDevel
0d003275a7
implemented image sharing and added julia set testcase
9 years ago
shamanDevel
d36c957f5e
implemented image operations
9 years ago
shamanDevel
4416295069
started with the image api, refactored buffer
9 years ago
shamanDevel
a6be243db1
refactoring of Context: moved simplifying functions from LwjglContext to Context
9 years ago
shamanDevel
ecda9135ad
implemented kernel execution
9 years ago
shamanDevel
6326daa120
implemented program building
9 years ago
Kirill Vainer
3353aea546
fix Uniform issue related to material changes
9 years ago
Kirill Vainer
e71cf81b96
J3M: allow static pass lighting to be selected
9 years ago
shamanDevel
e469af2ebc
implemented LwjglCommandQueue, LwjglBuffer and LwjglEvent, added buffer test to HelloOpenCL
9 years ago
shamanDevel
e02eec0abd
added customizability of the platforms and devices by PlatformChooser
9 years ago
shamanDevel
bb15931fa2
started with context creation
9 years ago
shamanDevel
195a5a69be
added first version of the cl wrapper in CL.java, contains a subset of the OpenCL specification
9 years ago