You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering: why the cache is disallowed for BINARY and TEXT?
cf. : Assets::loadAsset:
publicstaticfunctionloadAsset(id:String, type:AssetType, useCache:Bool):Future<Dynamic>
{
#if (tools && !display)
if (useCache&&cache.enabled)
{
switch (type)
{
caseBINARY, TEXT: // Not cached <<<--- yes, but why?!useCache=false;
(...)
Users have to make their own cache.
loadText and loadBytes should have another parameter to allow or not cache. Like all others methods (loadFont, loadImage, loadAudioBuffer, etc...).
If not, why?
Thanks in advance,
Théo Sabattié
The text was updated successfully, but these errors were encountered:
Hi,
I don't know why the cache is disabled in this case; but the #if tools on top should mean that this code is valid only when building the lime executable itself. If so, its effects should happen only when you call lime via command line; that is, only during compilation of a project and not during execution of that project.
Hello',
Thanks for your awesome work! :)
I was wondering: why the cache is disallowed for BINARY and TEXT?
cf. : Assets::loadAsset:
Users have to make their own cache.
loadText and loadBytes should have another parameter to allow or not cache. Like all others methods (loadFont, loadImage, loadAudioBuffer, etc...).
If not, why?
Thanks in advance,
Théo Sabattié
The text was updated successfully, but these errors were encountered: