diff --git a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/advanced/multithreading.html b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/advanced/multithreading.html index 4ca1a2750..f0bc7e896 100644 --- a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/advanced/multithreading.html +++ b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/advanced/multithreading.html @@ -1,4 +1,31 @@ +

The jME3 Threading Model

+
+ +

+ +jME3 is similar to Swing in that for speed and efficiency all changes to the world must be made in a single update thread. This is handled automatically for you if using Controllers or simpleUpdate however whenever you pass work to another thread you need to hand the results back to the main jME3 thread before making any changes to the scene graph. +

+
    public void rotateGeography(final Geography goe, final Quaternian rot) {
+        mainApp.enqueue(new Callable<Spatial>() {
+
+            public Spatial call() throws Exception {
+                return geo.rotate(rot);
+            }
+            
+        });
+    }
+ +

+Note that this example does not fetch the returned value by calling get() on the Future object returned from enqueue(). This means that the example method rotateGeography() will return immediately and will not wait for the rotation to be processed before continuing. +

+ +

+If the processing thread needs to wait or needs the return value then get() or the other methods in the returned Future object such as isDone() can be used. +

+ +
+

Multithreading Optimization

@@ -20,7 +47,7 @@ Effectively, each for-loop in the main update loop might be a chance for multith

- +

Java Multithreading

@@ -39,7 +66,7 @@ The java.util.concurrent package provides a good foundation for multithreading a
- +

Multithreading in jME3

@@ -57,7 +84,7 @@ To avoid slowdown, we decide to keep the pathfinding operations in the NPC Contr

- +

Executor

@@ -84,7 +111,7 @@ In your simple application you can override the stop method and shutdown the exe }
- +

Control Class Fields

@@ -104,7 +131,7 @@ Here we also created the Future variable to track the state of this task.

- +

Control Update() Method

@@ -152,7 +179,7 @@ Remember not to mess with the class fields after starting the thread, because th

- +

The Callable

@@ -204,34 +231,7 @@ private Callable<MyWayList> findWay = new Callable<MyWayList>(&# };
- -

The jME3 Threading Model

-
- -

- -jME3 is similar to Swing in that for speed and efficiency all changes to the world must be made in a single update thread. This is handled automatically for you if using Controllers or simpleUpdate however whenever you pass work to another thread you need to hand the results back to the main jME3 thread before making any changes to the scene graph. -

-
    public void rotateGeography(final Geography goe, final Quaternian rot) {
-        mainApp.enqueue(new Callable<Spatial>() {
-
-            public Spatial call() throws Exception {
-                return geo.rotate(rot);
-            }
-            
-        });
-    }
- -

-Note that this example does not fetch the returned value by calling get() on the Future object returned from enqueue(). This means that the example method rotateGeography() will return immediately and will not wait for the rotation to be processed before continuing. -

- -

-If the processing thread needs to wait or needs the return value then get() or the other methods in the returned Future object such as isDone() can be used. -

- -
- +

Conclusion

@@ -250,5 +250,5 @@ The cool thing about this approach is that every entity creates one self-contain
- +

view online version

\ No newline at end of file diff --git a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html index 4211b00d1..4939f7679 100644 --- a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html +++ b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html @@ -226,12 +226,10 @@ Activating the nbandroid plugin in the jMonkeyEngine SDK Rev. 20 you need to copy and paste mobile/AndroidManifest.xml to mobile/MANIFEST.MF () - - +

Android Considerations

@@ -255,7 +253,7 @@ You can use the jMonkeyEngine SDK
- +

Using Android specific functions

@@ -277,7 +275,7 @@ Note that you have to build the whole project once to make (new) classes in the

- +

More Info

@@ -301,5 +299,5 @@ The SDK will later provide t
- +

view online version

\ No newline at end of file diff --git a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/sdk/application_deployment.html b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/sdk/application_deployment.html index bc009c810..fa21c7737 100644 --- a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/sdk/application_deployment.html +++ b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/sdk/application_deployment.html @@ -135,12 +135,16 @@ jMonkeyEngine SDK allows you +

+A resources folder in your project folder will be created that contains the template icons and settings files for each selected platform. If you change one of them, de-selecting the deployment for that platform will not delete this resource file anymore and it will not be overwritten when you re-enable deployment for that platform. +

+

When you build your project, zip files for each selected platform will be created in the dist folder that contain all that is needed to run your application on that platform.

- +

Web Start (JNLP)

@@ -177,7 +181,7 @@ Also, see this +

Browser Applet

@@ -242,7 +246,7 @@ The dist/Applet directory now contains all the files necessary for
- +

Android Mobile Device

@@ -252,7 +256,7 @@ You can set the jMonkeyEngine SDK
- +

Tip: Switching Build Configurations

@@ -277,7 +281,7 @@ Now you can use the Set Project Configuration popup menu to switch

- +

Tip: Reduce Distribution File Size

@@ -320,5 +324,5 @@ jme3-libraries-gui, jme3-libraries-physics, jme3-libraries-video, etc.
- +

view online version

\ No newline at end of file