Added GetCurrentThreadID() static function to Thread. Store the thread which created the Context.
Detect main thread when sending events or using profiler blocks; make these no-ops when called from outside the main thread.
Allow logging from outside the main thread. These log messages are collected and handled at the end of frame.
Protect some ResourceCache structures with a mutex so that eg. GetFile() or GetTempResource() can be called from worker threads. Verify that GetResource() is only called from the main thread.
Initial resource background loading API and implementation. Background loading-capable implementation for textures (load image in background thread, upload image to GPU in main thread), other resources todo.
Allow dynamically created profiler block names by copying the name C string.
Texture Load() function with image pointer renamed to SetData() to not confuse with the threaded/nonthreaded resource loading functions.
Create all timeline nodes.
Restore Drawable base attributes to ParticleEmitter. Closes #407.
Travis CI: API documentation update at 2014-07-22 14:07:16 UTC.
[ci package]
Removed debug print from the material editor.
As a possible fix to #409, remove the optimization to not mark a node dirty again if it is already dirty. As a consequence the TransformChanged() script function will work more logically. This change would cause reduced performance with a large amount of animating models; to counteract, introduce a "silent update" mechanism for node transforms.
Merge branch 'master' into threaded-resource-load
Background loading of Materials.
Store dependencies of 3D & cube textures so that they will be properly live reloaded if the individual images change.
Log message for finalizing a background loaded resource.
Further fixes for threaded drawable updates: ensure drawables per workitem > 0, do not update bounding boxes threaded as they may not be correct in case of hierarchical composition.
Merge branch 'master' into threaded-resource-load
Precalculate texture's mip levels during async loading, if applicable. Use a timer to avoid spending too much time per frame on finishing async loaded resources.
Configurable max work time in ms per frame for finishing background loaded resources, and for non-threaded work in WorkQueue. Fix iteration bug if finishing several background loaded resources in one go.
Asynchronous loading for Model.
If loading a Model synchronously, read directly into the buffers like before to avoid extra allocation & copy.
Asynchronous loading of ScriptFile. Due to possibly accessing arbitrary engine functionality in script initializers the actual script compilation cannot be threaded even if AngelScript itself is compiled as thread-safe. Furthermore AngelScript allows only 1 simultaneous compile, and the resource loading system is not prepared to fail and retry in that case.