5 ms·
From the author "Photon has its own HTML5 inspired canvas drawing engine using Cairo underneath". That means it should render nicely at any resolution, the aut
by FraKtus 7y ago
From the author "Photon has its own HTML5 inspired canvas drawing engine using Cairo underneath".
That means it should render nicely at any resolution, the author says, "resolution independent and allows for HDPI displays".
But using Cairo means it should not have a good performance at high resolutions. I have yet to find a fork of Cairo GPU accelerated that supports all the API.
So it may fit the bill if you are coding a simple interface, but it will be too slow to render at 60FPS and at high resolution.
What comes closest for me is Dear ImGui, but I never saw an interface with those nicely rendered buttons in real-time done with Dear ImGui.
- srikz 7y agoI'm curious if you have come across (and recommend) any framework which lie in between Photon (Cairo) and Dear ImGui. I'm trying to follow all thr efforts in native desktop GUI tools and am currently using Dear ImGui for something which will only be used internally.
- FraKtus 7y agoFor me, nothing is as nice looking as Photon (resolution independent) and GPU friendly to allow 60 FPS cross-platform GUI. It looks like you still need to roll your own. I am currently working with Dear ImGui and found a pipeline where I put SVG icons in a true type front and can then render them resolution independent with Dear ImGui.
- elcritch 7y agoYou might try Scenic. It’s more embedded oriented but does run on desktops using OpenGL. Also it’s new so the component library is pretty small still.
- srikz 7y agoYes, have been excitedly following Scenic since Boyd Multerer's talk about his experiments a couple of years back. Haven't tried it yet as I somehow kept putting off wrapping my head around Elixir and FP
- pier25 7y agoAnyone using Skia?
- badsectoracula 7y agoDoesn't Skia have a very fragile API? I remember reading that they were breaking their API/ABI all the time. If nothing else, Cairo's API is always backwards compatible.
- pjmlp 7y agoIt is at very least a pain to set up, specially on Windows.
- joezydeco 7y agoI’ve always been curious why Google didn’t spin out Skia. Maybe because it lacks the UI primitives you really need to make it useful?
- pier25 7y agoWhat do you mean with "spin out"? (sorry English is not my first language)
- gigatexal 7y agoI knew the original dev of cairo. It’s amazing to see how it is being used in many different projects: a testament to his work all those years ago. This GUI looks great, too. It’d be interesting to have python bindings to it.
- djowel64 7y agoHi I'm Joel, the the author of Photon. The "canvas" part is encapsulated and can re-target another vector engine. I'm considering Skia, but it was too unstable when I first tried. Maybe I'll try again.