public class DejankUtils extends Object
Constructor and Description |
---|
DejankUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
postAfterTraversal(Runnable r)
Executes
r after performTraversals. |
static void |
removeCallbacks(Runnable r)
Removes a previously scheduled runnable.
|
public static void postAfterTraversal(Runnable r)
r
after performTraversals. Use this do to CPU heavy work for which the
timing is not critical for animation. The work is then scheduled at the same time
RenderThread is doing its thing, leading to better parallelization.
Needs to be called from the main thread.
public static void removeCallbacks(Runnable r)
Needs to be called from the main thread.