preload vs preloadAsync

preload vs preloadAsync
0.0 0


Hi all,

Seeing as both cc.Loader.preload and cc.Loader.preloadAsync use callbacks, I’m having trouble understanding the difference between the two.

Help will be greatly appreciated.
Thanks in advance,




The difference between cc.Loader.preload and cc.Loader.preloadAsync is that cc.Loader.preload will load everything as soon as possible while cc.Loader.preloadAsync only load next resource when FPS bigger than 20. So, cc.Loader.preloadAsync could be used for background resources loading.

They both don’t block anything, the callback function will be called when the loading is complete.