swift - Store CGImage in RAM -


i working 100 large cgimage , can ask application display of them. since delay had wait before image draw on screen annoying, decided load images asynchronously (using operationqueue) if loading completed should, in theory, view image , if loading not completed, application can still asks specific cgimage , waiting in worst case long before implementation of operationqueue.

but not get. experiencing reduction in loading time of cgimages still bit annoying. looking @ activity monitor noticed ram usage of application not grow. but when specific cgimage displayed on screen, ram usage grows , consequently if ask again cgimage loading immediate

what missing? have maybe got tell os want cgimage stored in ram , not in "chache"?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -