https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    04/17/2019, 1:29 PM
    i wonder if an approach like kodegarden would work
  • b

    bright-gpu-74537

    04/17/2019, 1:29 PM
    http://kodegarden.org/
  • b

    bright-gpu-74537

    04/17/2019, 1:30 PM
    the UI is haxeui-html, and it contains a kha khanvas
  • b

    brainy-machine-50829

    04/17/2019, 1:30 PM
    That just runs Kha there, so all the render loop resources are still used.
  • b

    bright-gpu-74537

    04/17/2019, 1:30 PM
    not sure if its constantly looping
  • b

    brainy-machine-50829

    04/17/2019, 1:30 PM
    But I suppose it's not really avoidable.
  • b

    bright-gpu-74537

    04/17/2019, 1:30 PM
    well, there are things you can do with the kha loop as you have control over it
  • b

    brainy-machine-50829

    04/17/2019, 1:30 PM
    Yeah, it is. Basic html5 canvas being redrawn.
  • b

    bright-gpu-74537

    04/17/2019, 1:30 PM
    ie, you can tell it when to update
  • b

    brainy-machine-50829

    04/17/2019, 1:30 PM
    Yeah, that would be doable.
  • b

    brainy-machine-50829

    04/17/2019, 1:31 PM
    But it would still redraw everything if you wanted to change a single pixel.
  • b

    brainy-machine-50829

    04/17/2019, 1:31 PM
    I have no idea how native stuff avoids that. Probably some dirty rect redrawing or something like that.
  • b

    bright-gpu-74537

    04/17/2019, 1:31 PM
    yeah, i would guess so
  • q

    quick-king-64105

    04/17/2019, 3:04 PM
    re:Flixel is drawing constantly - IIRC we flag objects dirty/clean and only redraw if it's dirty. Frame dips can be seen in the flixel debugger when anything graphical changes in HaxeUI. But I don't really know the HaxeUI implementation on flixel at THAT level, mostly trying to recall poking graphics several years ago when AS3 was still a relevant language.
  • b

    bitter-family-72722

    04/17/2019, 3:24 PM
    in a sense, it's stil constantly drawing / blitting every frame
  • b

    bitter-family-72722

    04/17/2019, 3:25 PM
    just not recomputing the BitmapData of a sprite if it's not dirty
  • b

    brainy-machine-50829

    04/17/2019, 3:33 PM
    In my well equipped laptop with nvidia optimus, even empty fullscreen canvas with RAF refresh causes 50% or so CPU slowdown and makes everything go at like 15 fps. Even typing text in editor.
  • b

    brainy-machine-50829

    04/17/2019, 3:33 PM
    Fun.
  • q

    quick-king-64105

    04/17/2019, 3:36 PM
    Drivers?
  • b

    brainy-machine-50829

    04/17/2019, 3:46 PM
    No, 4k display with i7 integrated gpu and nvidia optimus that works by passing the data around from the dedicated gpu through the igpu.
  • b

    brainy-machine-50829

    04/17/2019, 3:46 PM
    So in the end, if the igpu can't handle the bandwidth (it can't) it slows down half the CPU or so and makes it all go crawl.
  • b

    brainy-machine-50829

    04/17/2019, 3:47 PM
    Despite the 1050ti that's inside is idling at 10-20% usage, the igpu is at 100%.
  • b

    brainy-machine-50829

    04/17/2019, 3:47 PM
    And that's with chrome being forced to use the dedicated gpu (which wasn't trivial).
  • q

    quick-king-64105

    04/17/2019, 4:13 PM
    Sounds like you need an external port there XD
  • q

    quick-king-64105

    04/17/2019, 4:13 PM
    On the optimus, not the onboard.
  • b

    brainy-machine-50829

    04/17/2019, 4:14 PM
    I had 2nd display via hdmi now, and I actually expected that to work purely through the dedicated, but it doesn't.
  • b

    brainy-machine-50829

    04/17/2019, 4:15 PM
    It's silly. My next work PC will be a desktop. Assuming I will be able to afford anything at all. 😄
  • a

    ambitious-knife-25690

    04/17/2019, 4:17 PM
    I dunno what it is
  • a

    ambitious-knife-25690

    04/17/2019, 4:17 PM
    but I defo prefer a desktop to work on then a laptop
  • a

    ambitious-knife-25690

    04/17/2019, 4:17 PM
    Laptop work I can tolerate for a few days but it just doesn't feel "right"
1...8910...1687Latest