HomeiOS Developmentios - Impeller Rendering Engine Inflicting Huge Latency and Reminiscence Consumption

ios – Impeller Rendering Engine Inflicting Huge Latency and Reminiscence Consumption


I am engaged on a Flutter mission (sdk: ‘>=3.0.1 <4.0.0’) for iOS (platform :ios, ‘13.0’) and proper after upgrading Flutter this morning I seen that the iPhone simulator (Xcode 14.3) was utilizing between 3-5gb of reminiscence and my complete system was unusable so long as the simulator was working.

I’ve a 32GB Mac and when the simulator was onscreen (when minimized the system was performant and appeared effective) and working, my complete system was experiencing large latency, lags, and efficiency points. Scrolling by supply, doing any form of debugging, or actually something in any respect was extraordinarily tough as a result of efficiency impression (VS Code for my IDE).

After spending a number of hours debugging what the heck was happening unexpectedly (this had by no means occurred earlier than the improve), I seen in my debug console a line I hadn’t seen earlier than…

"[VERBOSE-2:FlutterDarwinContextMetalImpeller.mm(35)] Utilizing the Impeller rendering backend."

After some fast Googling and studying about how Impeller is seemingly so superior and unimaginable, I made a decision to show it off and see what would occur. I added the next tag to my information.plist to disable it.

<key>FLTEnableImpeller</key>
  <false />

Low and behold to my delight, however definitely not shock, all the things went again to “regular” and I used to be in a position to really scroll by a supply file whereas the simulator was working my mission on display screen on the similar time! Nearly like I wasn’t within the early 1990’s anymore engaged on my 386… Simulator reminiscence was at round 140-500mb at most.

My query is, how can I allow Impeller and nonetheless be capable of use the remainder of my system on the similar time? Has anybody else skilled this habits or had an identical points with Flutter/Impeller after upgrading or at any level? Would love to listen to peoples ideas on this.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments