Comments (7)
from maui.
If I understand correctly, the problem is that your code is executing slower with MAUI than it did with Xamarin.Forms.
Do you see the same behavior with a Release build? Is it faster than a Debug build, or is it just as slow?
from maui.
If I understand correctly, the problem is that your code is executing slower with MAUI than it did with Xamarin.Forms.
Do you see the same behavior with a Release build? Is it faster than a Debug build, or is it just as slow?
Yes, understand correctly. The problem was found in our release version. Therefore the release build not works faster. The release mode could make mostly process faster besides the EA function. I have no idea to make it faster now. If you could found other solutions for us to try, we will appreciate very much.
from maui.
Can you try adding this to your csproj:
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<MtouchExtraArgs>--require-pinvoke-wrappers:true</MtouchExtraArgs>
<UseInterpreter>false</UseInterpreter>
</PropertyGroup>
and see if it makes a difference?
from maui.
Can you try adding this to your csproj:
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> <MtouchExtraArgs>--require-pinvoke-wrappers:true</MtouchExtraArgs> <UseInterpreter>false</UseInterpreter> </PropertyGroup>
and see if it makes a difference?
Thanks for sharing this, however it makes the application crashes when tapping it to start.
There is a little difference in my project that MtouchExtraArgs
already exists following configuration:
<MtouchExtraArgs>--require-pinvoke-wrappers:true --optimize=experimental-xforms-product-type -cxx -gcc_flags ...<MtouchExtraArgs>
I just put --require-pinvoke-wrappers:true
in the front of my current configuration.
from maui.
Thanks for sharing this, however it makes the application crashes when tapping it to start.
It sounds like your app requires the interpreter for some reason. The interpreter is slower than AOT-compiled code, but it shouldn't make this much of a difference.
So we can try to enable the interpreter, but AOT-compile every assembly, which should hopefully make your app not crash at launch:
<PropertyGroup>
<MtouchInterpreter>-all</MtouchInterpreter>
</PropertyGroup>
Can you see if that works / changes anything?
from maui.
Thanks for sharing this, however it makes the application crashes when tapping it to start.
It sounds like your app requires the interpreter for some reason. The interpreter is slower than AOT-compiled code, but it shouldn't make this much of a difference.
So we can try to enable the interpreter, but AOT-compile every assembly, which should hopefully make your app not crash at launch:
<PropertyGroup> <MtouchInterpreter>-all</MtouchInterpreter> </PropertyGroup>
Can you see if that works / changes anything?
Unfortunatly, it also not works as the same phenomenon. In addition, it will need more time to finish the build process almost above 6 mins.
As you said that, our project need UseInterpreter, and it exists in .csproj
:
<PropertyGroup>
...
<TargetFramework>net7.0-ios</TargetFramework>
<OutputType>Exe</OutputType>
<RootNamespace>PalmUI</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<UseInterpreter>true</UseInterpreter>
...
</PropertyGroup>
from maui.
Related Issues (20)
- [Android] CarouselView + CollectionView performance issues HOT 3
- [MAUI] `File.Designer.cs` is not generated for `File.resx` placed in MAUI Library HOT 2
- Shell Tabs on Android are sometimes not visually removed from view when IsVisible is set to false. HOT 2
- "FileSystem" doesn't work on .net maui 9 preview blazor hybrid "Web App" project HOT 3
- FlyoutItemIsVisible doesn't work for nested content HOT 1
- [Windows][Bug] Shell shows as blank screen when returning from another page HOT 3
- [iOS, 9.0 Preview 6] SkiaSharp 3.0 Preview 4.1 has a severe memory leak on iOS HOT 1
- Screenshots taken using IScreenshot.CaptureAsync don't include popups or visible alerts HOT 1
- Android Tabbar, clicking 4th tab opens the 5th tab HOT 1
- Scrollviews inside Grids come up faulty in screenshots HOT 2
- Grid with auto width columns overflows its container HOT 1
- My Splash screen is not working in ios after upgrade to net8.0 HOT 2
- [Windows, .NET 9.0 Preview 6, SkiaSharp 3.0-preview4.1] SKGLView crashes the app when .NET MAUI App is built in the unpackaged mode HOT 1
- Android Back Button Minimizes App When BlazorWebView Inside RefreshView HOT 2
- Maui Blazor Hybrid app crashes on connected device after splash screen, but works on simulator HOT 4
- I am using this method ( .NET 8 ) but it display a white screen after splash screen HOT 1
- InputTransparent property makes all children disabled HOT 1
- HybridWebView/WebView - Implement methods for playsinline, autoplay, and other playback configuration options
- When using DragGestureRecognizer, the drag target does not have Scale applied. HOT 3
- CarouselView items are not updated correctly. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.