Coder Social home page Coder Social logo

Comments (8)

Adrian-Samoticha avatar Adrian-Samoticha commented on July 19, 2024 1

Hello,

I am the maintainer of the macOS port of this library.
No, this behavior is neither intended nor known.

I'll look into this issue and see whether I can reproduce it myself.

from flutter_acrylic.

devmil avatar devmil commented on July 19, 2024 1

I tried some things and it seems that as soon as I remove the TitlebarSafeArea Widget the problem seems to diappear.
I will dig deeper...

from flutter_acrylic.

devmil avatar devmil commented on July 19, 2024 1

fixed now on master

from flutter_acrylic.

alexmercerind avatar alexmercerind commented on July 19, 2024

Mind telling your Windows version?

from flutter_acrylic.

devmil avatar devmil commented on July 19, 2024

Mind telling your Windows version?

It is macOS 12.3.1 running on an M1 Pro (14 inch). It doesn't matter if I run the arm or x86 variant.
The win32 package is only complaining during compilation.

from flutter_acrylic.

Adrian-Samoticha avatar Adrian-Samoticha commented on July 19, 2024

Alright. First of all, trying to run the example project in Flutter 3 produces the following error on my end:

Error: 'Size' is imported from both 'dart:ffi' and 'dart:ui'.

This error can be fixed by upgrading bitsdojo_window from ^0.1.1+1 to ^0.1.2, a version that, as of writing, came out 11 hours ago. Did you perform this upgrade yourself, or did it somehow compile fine on your end without this change?

That said, I was able to reproduce the issue. The performance profiler looks even worse on my end than on yours and the app hovers at around 15 - 20 % CPU usage on my M1 MacBook Air:

image

Unfortunately, I am currently unsure how to fix this issue. I am relying on high-level Swift functions to achieve the transparency effect, which makes it difficult to assess the performance impact of the library.

from flutter_acrylic.

devmil avatar devmil commented on July 19, 2024

Sorry, I missed to mention that I'm using a locally patched version of bitsdojo_window.
That's really sad. Any idea what might trigger Flutter to do this?

from flutter_acrylic.

Adrian-Samoticha avatar Adrian-Samoticha commented on July 19, 2024

Not at the moment, though I did notice that this behavior doesn't change when the transparency effect is inactive (neither when the window is unfocused, nor when the effect is disabled entirely). Perhaps this has something to do with the view controller that is initialized in the MainFlutterWindow.swift file, then?

I'll have to look deeper into this.

from flutter_acrylic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.