Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin on iOS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Further experimentation with the memory layout on OS X shows that commenting out the mirrors causes Dolphin to crash. (yes, fastmem is off) I will continue to look into this.
hey sir, talk whit @jpd002 @LoungeKatt

here https://github.com/jpd002/Play-/issues/16#issuecomment-122507024
I'm not really thinking about how file loading will work right now since it doesn't even run at the moment. I'll keep that link for the future though. (I'm also in the process of upgrading my iOS device to 8.4 and being busy with other irl things, so I'm not really working on Dolphin at this time.)

Just a quick PSA: Note that ONLY the following devices will support Dolphin: iPhone 5S, iPad Air, iPad Mini 2, iPhone 6 (Plus), iPad Air 2, iPad Mini 3, iPod Touch (6th generation), and any iOS device that has been announced since this post (excluding any new Apple TVs, since nobody really knows what the hardware for that thing will be at this point in time). This is because the armv7 (32-bit) JIT was recently dropped from Dolphin for various reasons, so none of the 32-bit iOS devices will run Dolphin.
(03-22-2015, 01:58 AM)OatmealDome Wrote: [ -> ]
(03-21-2015, 03:59 PM)magumagu Wrote: [ -> ]Yes, it actually wants 16GB.  The fact that we free it immediately is a bug.  Note that it isn't actually allocating that much memory, just trying to reserve address space for fastmem.  This hasn't been a problem on desktop OSes or Android; not sure why iOS doesn't like it.

If reserving the address space is really impossible on iOS, we'll need to modify the JIT to compensate for a different memory layout.  Not impossible, but there would be a substantial performance penalty.

I looked more into this issue, and apparently iOS does limit the amount of addressable memory. Somebody made a program that attempts to exhaust the addressable memory and found the limit of how much a process can take. If you run it in the simulator, there are no restrictions. However, on the actual devices, there are restrictions and they vary with each device. The highest amount he got was on the retina iPad Mini (that is 64-bit), which was around 2GB! Presumably, this amount would be even less for iPhones!

So, from here, I could maybe try using setrlimit since we have access to root on a jailbroken device, or the only option is to modify the JIT as you said...

UPDATE: getrlimit(RLIMIT_AS) says it's already set to the maximum value...

From that same page the Iphone 6 has a limit of >16.38GB on IOS 8.0
That was running under the simulator, which may not actually map correctly to the real device.
That's on the iOS Simulator. The simulator does not impose any restrictions on memory because it's technically not running "real" iOS. (only SpringBoard and some other processes with the iOS frameworks compiled for x86_64)

EDIT: Gah! Ninja'd because I got distracted and looked up some interesting things like where the frameworks are stored for the simulator (and also found out that you can apparently run Substrate tweaks on the simulator, which is interesting)
(07-23-2015, 09:59 AM)Sonicadvance1 Wrote: [ -> ]That was running under the simulator, which may not actually map correctly to the real device.

Ah. Makes sense.
(07-23-2015, 06:45 AM)DatKid20 Wrote: [ -> ]
(03-22-2015, 01:58 AM)OatmealDome Wrote: [ -> ]
(03-21-2015, 03:59 PM)magumagu Wrote: [ -> ]Yes, it actually wants 16GB.  The fact that we free it immediately is a bug.  Note that it isn't actually allocating that much memory, just trying to reserve address space for fastmem.  This hasn't been a problem on desktop OSes or Android; not sure why iOS doesn't like it.

If reserving the address space is really impossible on iOS, we'll need to modify the JIT to compensate for a different memory layout.  Not impossible, but there would be a substantial performance penalty.

I looked more into this issue, and apparently iOS does limit the amount of addressable memory. Somebody made a program that attempts to exhaust the addressable memory and found the limit of how much a process can take. If you run it in the simulator, there are no restrictions. However, on the actual devices, there are restrictions and they vary with each device. The highest amount he got was on the retina iPad Mini (that is 64-bit), which was around 2GB! Presumably, this amount would be even less for iPhones!

So, from here, I could maybe try using setrlimit since we have access to root on a jailbroken device, or the only option is to modify the JIT as you said...

UPDATE: getrlimit(RLIMIT_AS) says it's already set to the maximum value...

From that same page the Iphone 6 has a limit of >16.38GB on IOS 8.0

he is not talking about disk space, he mean RAM Maximum usage.
Apple says maximum virtual memory addressable by an app is 750MB as well.
(07-24-2015, 03:43 AM)brujo5 Wrote: [ -> ]
(07-23-2015, 06:45 AM)DatKid20 Wrote: [ -> ]
(03-22-2015, 01:58 AM)OatmealDome Wrote: [ -> ]
(03-21-2015, 03:59 PM)magumagu Wrote: [ -> ]Yes, it actually wants 16GB.  The fact that we free it immediately is a bug.  Note that it isn't actually allocating that much memory, just trying to reserve address space for fastmem.  This hasn't been a problem on desktop OSes or Android; not sure why iOS doesn't like it.

If reserving the address space is really impossible on iOS, we'll need to modify the JIT to compensate for a different memory layout.  Not impossible, but there would be a substantial performance penalty.

I looked more into this issue, and apparently iOS does limit the amount of addressable memory. Somebody made a program that attempts to exhaust the addressable memory and found the limit of how much a process can take. If you run it in the simulator, there are no restrictions. However, on the actual devices, there are restrictions and they vary with each device. The highest amount he got was on the retina iPad Mini (that is 64-bit), which was around 2GB! Presumably, this amount would be even less for iPhones!

So, from here, I could maybe try using setrlimit since we have access to root on a jailbroken device, or the only option is to modify the JIT as you said...

UPDATE: getrlimit(RLIMIT_AS) says it's already set to the maximum value...

From that same page the Iphone 6 has a limit of >16.38GB on IOS 8.0

he is not talking about disk space, he mean RAM Maximum usage.
Apple says maximum virtual memory addressable by an app is 750MB as well.

Dude how are you over 12 hours late yet you think you're saying something new?
misunderstanding then.sorry!
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14