Code Monkey home page Code Monkey logo

Comments (4)

dskinner avatar dskinner commented on June 21, 2024

There are some places to start looking

  • reusing same shader program, perhaps via some general mechanism in material/glutil
  • possibly reuse geometry uploaded since current deforms are done with the mat4 in the shader, this might conflict with a proper circle implementation and rounded corners though so I'm not eager to pursue this atm.
  • possibly clean up how text is handled.
  • look at how icons are currently being handled
  • maybe tweak shadows more with consideration to material design guidelines which forbids approximating on same plane. I noted disabling shadows gained 5-7 fps on reddit so this probably isn't a major concern.

As I write this out, most everything really needs a look over. Changes need to consider how it plays into material design specification.

I produced this pprof svg on desktop but it mostly read like cgo overhead so it may be that a need is to focus on reducing overall calls, but my initial impression of that is its not making that many calls.

(click download in top bar and then open downloaded file, google drive doesn't render svg well)
https://drive.google.com/a/dasa.cc/file/d/0B6hxg-gC2Uz_YkNtZ3FOYTQ3bEk/view

Bear in mind the example app in pkg snd has some real time synthesis going on as well, but in general, this hasn't been a problem and it doesn't skip a beat due to graphics.

Sorry for the vague starting point but that's about all I have to go off at the moment as well. The first two places I'd start are my first two bullet points as those should probably happen regardless.

from material.

joeblew99 avatar joeblew99 commented on June 21, 2024

ok.
Might be worth thinking about it at a higher level.
Have you tried out shiny instead of gomobile ?
https://godoc.org/golang.org/x/exp/shiny

gomobile is dead code, and the go core team have stated that shiny is the "one true way".

from material.

dskinner avatar dskinner commented on June 21, 2024

Have you tried out shiny instead of gomobile ?

shiny doesn't work on mobile but is still a goal for this package

gomobile is dead code

It's actually pretty active. x86 support on android was seen recently including the tooling in gomobile to build such, for but one example.

and the go core team have stated that shiny is the "one true way"

I don't know what you're quoting here. In the future, gomobile will likely be using shiny for running on desktop. shiny is already using gomobile pkgs for things like events. There's overlap.

from material.

joeblew99 avatar joeblew99 commented on June 21, 2024

I saw that model yao has started setting up for shiny and Material design to work together.

I am using vanadium ( Google golang ) project for a work project. Vanadium team currently uses flutter / dart for the GUI, but it looks like golang is slowly getting to the point of being able to build UI.

You should have a chat to the vanadium guys..

from material.

Related Issues (13)

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.