Kai Boernert
848a9217d0
Extracted an Allocator interface for DirectByteBuffers
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
2016-07-09 11:57:03 +02:00
Nehon
201010b6f0
fixed a merge issue in the previous bomb merge
2016-07-07 20:48:13 +02:00
Nehon
16023fa481
PBR has come
...
Merge branch 'PBRisComing'
# Conflicts:
# jme3-core/src/main/java/com/jme3/material/Material.java
# jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java
2016-07-07 20:36:31 +02:00
Nehon
67fb8fc812
Fixed an issue in SinglePAssAndLightBasedLogic where texture units were not properly assigned
2016-07-07 19:53:59 +02:00
Rémy Bouquet
84b2f67393
Merge pull request #501 from MeFisto94/HwSkinningFixV02
...
Fixes #499 : Fix Hardware Skinning in 3.1
2016-07-04 07:44:44 +02:00
Paul Speed
3f7f9b125d
Merge pull request #515 from tiatin/iterator-garbage-collection-improvement
...
Garbage collection and list iteration improvements
2016-06-26 21:47:47 -04:00
tiatin
8e8186de0a
Changed overrides from ArrayList to SafeArrayList for GC and iteration performance reasons. Fixed bug in SafeArrayList.equals().
2016-06-26 12:31:34 +03:00
tiatin
b524dcd66d
Added iteration using iterator, if List is not ArrayList.
...
Reason for this is that if List is LinkedList, complexity for get(int i) is O(n/4).
2016-06-25 18:15:03 +03:00
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/
2016-06-25 15:45:24 +03:00
NemesisMate
ce82a8a7b9
improved the setUserData method.
2016-06-25 11:16:46 +01:00
Riccardo Balbo
f3319d3fd6
Fix npe
2016-06-23 22:05:05 +02:00
NemesisMate
cdc708dcda
userdata to null again once all data is removed.
2016-06-23 16:57:06 +01:00
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();
2016-06-19 18:30:31 +02:00
shamanDevel
46db6d95f8
Added getter method for the device associated with a command queue
2016-06-19 18:06:00 +02:00
shamanDevel
eb07d69cd8
missing toString() methods added
2016-06-19 13:26:26 +02:00
empirephoenix
65164e2075
Merge pull request #507 from jjYBdx4IL/master
...
fixes issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/506…
2016-06-11 17:16:10 +02:00
jjYBdx4IL
a20a84cf42
fixes issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/506 : Material->toString() does not prevent/check for possible NPEs
2016-06-07 23:42:29 +02:00
empirephoenix
6e8ba0f877
Merge pull request #500 from shamanDevel/PreOrderTraversal
...
added a pre-order traversal of the scene graph
2016-06-05 11:49:37 +02:00
Nehon
619a323b9d
Fixed an issue when resizing the viewport, with a FPP and antialiasing would stop rendering
2016-06-02 18:53:59 +02:00
empirephoenix
fbf2dd4497
Merge pull request #494 from shamanDevel/OpenCL
...
OpenCL for jME3
2016-05-28 18:38:47 +02:00
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)
2016-05-25 17:40:00 +02:00
shamanDevel
66b8447caa
Added pre-order traversal as an alternative to the default post-order depth first search traversal
2016-05-25 13:58:30 +02:00
Rémy Bouquet
334cad4657
proper equal and hashcode for ShaderNodesVariables.
2016-05-15 09:00:54 +02:00
Dokthar
63fb53f6e4
more typo ... ytpo ytop opyt ;)
2016-05-11 23:50:34 +02:00
Dokthar
a52a51cb27
typo fix in materials & shaders, also fix some javadoc
2016-05-11 22:56:57 +02:00
shamanDevel
732e75fba6
fixed unmapping of buffer objects and an error in setArg in Lwjgl3's Kernel
2016-05-11 09:19:30 +02:00
shamanDevel
250c871cab
Added a library for Matrix4f
2016-05-11 09:02:50 +02:00
shamanDevel
4e55e0e5a0
added library for Matrix3f, fixed some bugs
2016-05-10 14:55:42 +02:00
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
2016-05-10 13:06:04 +02:00
shamanDevel
c162d474c7
added matrix support for kernel arguments (mapped to float16)
2016-05-10 07:26:22 +02:00
shamanDevel
44899098e2
added dependency resolving and a random number library
2016-05-09 17:43:49 +02:00
Nehon
0e064e2d6a
MaterialDef is now savable
2016-05-09 17:08:32 +02:00
shamanDevel
e35bb7dcbc
added a constructor that disables the program cache: used during development
2016-05-05 19:49:51 +02:00
shamanDevel
a2df82b9e0
implemented a cache for program objects
2016-05-02 21:39:27 +02:00
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.
2016-05-02 20:57:28 +02:00
shamanDevel
54113f35e0
added alternative versions for kernel launches and resource acquiring that do not return an event. This improves the performance.
2016-05-02 14:21:02 +02:00
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.
2016-05-02 08:30:00 +02:00
Kirill Vainer
c843721806
build: check file exists before getting text
2016-04-30 17:20:27 -04:00
Kirill Vainer
74e398342f
build: only update version file when it changed
...
Avoids recompiling jme3-core on every build
2016-04-30 17:15:03 -04:00
shamanDevel
7fc7402855
changed author name
2016-04-27 10:30:35 +02:00
shamanDevel
1093c639eb
finished documentation
2016-04-27 09:03:45 +02:00
shamanDevel
510c40955f
some more documentation
2016-04-26 10:16:48 +02:00
Paul Speed
7c74262087
Merge pull request #486 from Dokthar/joysticks
...
Joystick detection on linux and more...
2016-04-25 17:51:35 -04:00
Dokthar
256abb38fa
joystick : added mapping for two gamepads
...
- the "GASIA CORP. PLAYSTATION(R)3 Controller"
- the "DragonRise Inc. Generic USB Joystick"
2016-04-25 21:01:00 +02:00
Dokthar
5e594a87d2
joystick : add trim() to each joystick name input
2016-04-25 20:52:04 +02:00
shamanDevel
ee43853ff1
docs, docs, docs
2016-04-25 16:33:10 +02:00
shamanDevel
196cbc8042
started with the documentation
2016-04-24 20:13:51 +02:00
Kirill Vainer
d044ad13e1
Fix issue #479
2016-04-23 15:37:33 -04:00
shamanDevel
60f10bb604
renamed DefaultPlatformChooser and moved it to the core, some small fixes
2016-04-23 14:40:48 +02:00
shamanDevel
0c47bf18c9
added memory managing: native resources are now automatically released
2016-04-23 14:18:46 +02:00