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

    clever-oil-61353

    06/23/2020, 12:49 AM
    4 lines of gl code frying my brain lol..... they will not win, i shall conquer them.
  • c

    clever-oil-61353

    06/23/2020, 5:05 PM
    And I did. Now its just a matter of getting the 3d image to show.
  • c

    clever-oil-61353

    06/24/2020, 1:24 AM
    Doc called and explained that ct scans to me. He is setting me up to see a lung specialist. I wonder what this adventure in health will end up being.
  • f

    fast-rain-20339

    06/24/2020, 1:25 AM
    Best of luck
  • c

    clever-oil-61353

    06/24/2020, 1:25 AM
    appreciate it.
  • c

    clever-oil-61353

    06/24/2020, 1:26 AM
    Hows your project coming along?
  • f

    fast-rain-20339

    06/24/2020, 1:27 AM
    Yeah, not too bad, I've been looking at the Kha side of it more than the UI recently. My Uni exams are kind of lagging on, got a calc exam tomorrow, so I'm in this limbo where I'm not properly studying, but not properly working either. In about a week though I'll have totally finished all Uni stuff and I'll be able to go 100% on the project ๐Ÿ™‚
  • c

    clever-oil-61353

    06/24/2020, 1:29 AM
    Sweet, not much longer then.. Good luck on the exam. Those things can be stressful.
  • f

    fast-rain-20339

    06/24/2020, 1:29 AM
    Yeah, cheers ๐Ÿ™‚
  • b

    bright-gpu-74537

    06/24/2020, 7:57 AM
    good luck guys ๐Ÿ™‚
  • f

    fast-rain-20339

    06/25/2020, 5:51 AM
    Yay, one exam to go, algorithms next week. Getting the strangest issue with my worlbuilding tool (haxeui+kha). When I allocate 1000x1000 array that uses HxNoise with vanilla haxe, hxcpp is chill, when I do the same within Haxe UI + Kha, it crashes with a backtrace that includes hxcpp's GC and haxe UI (!?) - but get this right, when I round off the floats hxnoise generates, even to like 5 decimal places, it works fine.
  • f

    fast-rain-20339

    06/25/2020, 5:51 AM
    Weirdest error ๐Ÿคจ Rounding works though so I'm happy haha
  • b

    brainy-machine-50829

    06/25/2020, 6:01 AM
    Kha uses the generational GC I think. But this is odd.
  • f

    fast-rain-20339

    06/25/2020, 6:01 AM
    Yeah, I was quite puzzled
  • b

    brainy-machine-50829

    06/25/2020, 6:01 AM
    Try it as pure minimal Kha sample, report to Robert? Sounds interesting.
  • f

    fast-rain-20339

    06/25/2020, 6:02 AM
    Not even sure why rounding hxnoise output works - do you know if rounded floats use less memory?
  • f

    fast-rain-20339

    06/25/2020, 6:02 AM
    Yeah maybe ๐Ÿ™‚
  • b

    brainy-machine-50829

    06/25/2020, 6:02 AM
    I don't know much about hxcpp or cpp in general. But hxnoise seems to be part of the equation.
  • b

    brainy-machine-50829

    06/25/2020, 6:02 AM
    Float should always be 64b in Haxe. Unless you use some different type.
  • f

    fast-rain-20339

    06/25/2020, 6:02 AM
    Yeah. Oh, here's another thing I didn't mention - just plain Math.random always worked!
  • b

    brainy-machine-50829

    06/25/2020, 6:03 AM
    Rounding or not... Can't imagine it doing something. Unless it goes through some boxing and unboxing on cpp.
  • f

    fast-rain-20339

    06/25/2020, 6:03 AM
    Really weird. I looked at HxNoise code, I don't think it does any allocations for just a lookup
  • f

    fast-rain-20339

    06/25/2020, 6:03 AM
    Mmh. Strange one. Anyway, I'm just moving on for now heh, trying to push forwards a bit
  • b

    bright-yak-48460

    06/25/2020, 6:12 AM
    As I happen to be struggling with a cpp GC crash on a Haxeui project as well (haxeui-openfl in my case), I'm curious to know anything else u discover. Any code besides the noise array, or is that it?
  • f

    fast-rain-20339

    06/25/2020, 6:14 AM
    That's mostly what I got it down to - I was originally doing a whole bunch of extra drawing, but I mostly removed that and it stilled crashed. Interesting that you're having this issue too ๐Ÿค” Also makes me think it might not be a Kha issue. I don't like really ambiguous bugs like this ๐Ÿ™„
  • f

    fast-rain-20339

    06/25/2020, 6:15 AM
    Are you doing any significant memory workload things? What causes your crash?
  • b

    bright-yak-48460

    06/25/2020, 6:16 AM
    In my case, it often crashes on a map iterator. Maps, and in particular Iterator on cpp is not great.
  • f

    fast-rain-20339

    06/25/2020, 6:17 AM
    Ah, that sounds even trickier to diagnose, yikes
  • b

    bright-yak-48460

    06/25/2020, 6:20 AM
    In particular, Iterator is just a typedef. So in cpp, this is dynamic and it uses reflection to check for hasNext and next field in the dynamic iterator object. If this happens a Lot or often enough, things can move around and trigger attempts to access addresses like 0xfffff... etc. In my case, the map size can change, so it makes things even worse.
  • f

    fast-rain-20339

    06/25/2020, 6:20 AM
    Wow, that sounds terrible
1...294295296...1687Latest