Tidy-up code
Tweak multithreaded unload\upload
Allow logging to file
Allow flushing
Fix symbol distance calculation
Fix warnings
Fix incorrect cache cleaning
Update screen also if resources are unloaded
Fix missing frame-invalidates when using GPU worker