x


How to access the IOS's memory usage in runtime!?

As above, i wanna to check whether there is enough memory for my new allocation!

more ▼

asked Jul 13 '11 at 09:45 AM

dearhpc gravatar image

dearhpc
46 4 5 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You need to use native code through a plugin to do so.

But thats not good practice on iOS as you can not assume anything basing on the data you get as iOS has the control, not your app. On iOS you normally listen to the memory warnings (The http://AppController.mm has the corresponding function defined - it leads to the log outputs - but its not hooked to call anything in unity until you use UnitySendMessage to call something specific) and reduce memory when you hit the warning

more ▼

answered Jul 13 '11 at 08:17 PM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

Thanks. I will take a try!

Jul 14 '11 at 02:14 AM dearhpc
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1960
x374
x326

asked: Jul 13 '11 at 09:45 AM

Seen: 1682 times

Last Updated: Jul 14 '11 at 02:14 AM