Lasse Öörni
|
562f401ffa
Refactor resource reloading based on filename into a function, which can be called externally.
|
11 tahun lalu |
Lasse Öörni
|
a04b3f746d
Added option to route / block / process resource requests. Based on celeron55's patch. Closes #469.
|
11 tahun lalu |
Lasse Öörni
|
5f0ed3fcf8
Fix more header warnings that could leak to an Urho3D application using maximum MSVC warning level.
|
11 tahun lalu |
Lasse Öörni
|
4f1906d598
Fix missing include file.
|
11 tahun lalu |
Lasse Öörni
|
33b15ebc31
Clean up ResourceCache template functions.
|
11 tahun lalu |
Lasse Öörni
|
be66059009
Refactor resource background loading into a separate class.
|
11 tahun lalu |
Lasse Öörni
|
e210ef20b2
Fix deadlock when waiting for a resource that is background loading but is now needed immediately.
|
11 tahun lalu |
Lasse Öörni
|
8ab908b1c9
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.
|
11 tahun lalu |
Lasse Öörni
|
f194765e78
Background loading of Materials.
|
11 tahun lalu |
Lasse Öörni
|
8463393377
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.
|
11 tahun lalu |
Lasse Öörni
|
840143eb00
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.
|
11 tahun lalu |
Lasse Öörni
|
1f521713e7
Do not store Image resources used during cube/3D texture loading permanently to cache.
|
11 tahun lalu |
Aster@中国上海
|
84fe0946c8
Remove ShortStringHash, Now all of ShortStringHash are replaced by StringHash.
|
11 tahun lalu |
Lasse Öörni
|
066781bf85
Fix ResourceCache::ReloadResource() header comment.
|
11 tahun lalu |
Lasse Öörni
|
263a624fe4
Possibility in ResourceCache to enable returning resources which failed to load. This is used in the editor to overcome eg. failed scripts disappearing from a ScriptInstance's script file slot.
|
12 tahun lalu |
Lasse Öörni
|
47836474e2
Variant pointer refactoring. Variant can now hold a weak pointer to a RefCounted object, which is safer, and is returned using GetPtr(). Engine events have been converted to use that mechanism. GetPtr() is also directly available in AngelScript, as well as assigning a RefCounted or derived class handle to a Variant.
|
12 tahun lalu |
Yao Wei Tjong 姚伟忠
|
ffe7a7699f
Minor enhancement on getting optional resources and error handling.
|
12 tahun lalu |
Lasse Öörni
|
6d5ddc23e0
Bump the copyright for 2014.
|
12 tahun lalu |
Lasse Öörni
|
2e01ca5e67
Sanitate resource dir similarly when adding and removing it to ensure removing works properly.
|
12 tahun lalu |
Alex Parlett
|
3166f1874d
Changed adding Resource and Package files to be able to specify the location in the Vector for search priority when calling GetFile or GetResource
|
12 tahun lalu |
Lasse Öörni
|
0fe2469957
Improved resource unloading. Make it possible to unload all resource types by partial name at once. Editor unloads unnecessary resources after scene load or clear. Add weak ref check to all resource unloading to avoid shader programs being left without their parent shader.
|
12 tahun lalu |
Lasse Öörni
|
ee0e3aa663
Removed the mechanism of binary-serializing resource name hashes instead of resource names. This is to allow correct resource loading from binary scene files on platforms that cannot iterate the resources in the application installation (eg. Android). This also affects networking, downside is increased network payload size when resource attributes are transferred. All binary scenes saved with old Urho versions are also invalidated.
|
12 tahun lalu |
Yao Wei Tjong 姚伟忠
|
d33ac02538
Refactor build scripts to build Urho3D library as main target.
|
12 tahun lalu |
Lasse Öörni
|
372fbed88d
Normalize resource names in SanitateResourceName() if they also contain a registered resource dir name, ie. Data/Scripts/NinjaSnowWar.as becomes Scripts/NinjaSnowWar.as. This fixes script file possibly getting loaded twice.
|
12 tahun lalu |
Wei Tjong Yao
|
02512cecf9
In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'.
|
12 tahun lalu |