Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Paul Gene Thompson
    @PaulGene
    But I can't find any pull requests or commits on github related to the changes!
    So I've just rolled back for now and everything is ok
    Yes you are right on a making a sound test sample to help find these problems, its something on my to-do list
    I need to get one more Renegade Racing content update out next month and then hopefully I can commit some time to NME
    Hugh Sanderson
    @hughsando
    Ok, it's good to know where to look.
    Hugh Sanderson
    @hughsando
    The the sound changes were to allow multiple "suspends" to be put on the sound. For example, if the app goes inactive, then the sound should stop. If the developer wants to show an ad, the sound should also stop. But then say the ad finishes and the sound resumes - but maybe the app is still inactive, so it actually should not resume. haxenme/nme@fb8bde8
    The total effect might be that the sound is suspended longer than it used to be and then a sound might "finish" while it is also suspended and this is causing a logic error. I'm just guessing here. There might also be a bug somewhere.
    Paul Gene Thompson
    @PaulGene
    Ah the AppLovin commit, I ignored that thinking it wouldn't be related to sound :D
    Really I need to find out exactly what is causing the crashes in avplayer (mp3s) and the latest changes, as soon as this Renegade Racing update is out I'll be on it...
    Hugh Sanderson
    @hughsando
    The latest version of Nme has an experimental metal backend for iOS and mac. You can try it with <haxedef name="nme_metal" /> in your projects.
    The downside is that you can't use WebGL Api with this backend. The upside is that the BunnyMark runs literally 10x faster on my laptop, although on older iOS hardware, I could not really see any difference. I consider the laptop difference more a statement of how bad the mac opengl support is, rather than how good metal is. Or maybe opengl is somehow not using the main GPU.
    Anyhow, let me know if you see any visual artefacts.
    Paul Gene Thompson
    @PaulGene
    :o cant believe you got that working already
    I'll test it out tonight
    Paul Gene Thompson
    @PaulGene
    Just building now, Renegade Racing should be great for stress testing this
    I will run a few devices in autoplay mode
    Hugh Sanderson
    @hughsando
    Nme had already separated the hardware geometry/calculations from the actual rendering, so it was less then 1000 lines of code for metal. Makes me think a specific directX driver may be worthwhile - again, without the webgl Api.
    Carlos Madrazo
    @madrazo
    @hughsando we have a DirectX11 (XB1) target from 2017 openfl-legacy. Would be useful instead of Angle? Nowadays I think there is a chance for getting permission to releasing it
    Paul Gene Thompson
    @PaulGene
    @hughsando I'm getting a black screen on an iPhone 6s
    Cant see any error messages
    The game seems to be running fine, just a black screen
    On an iPad 4 I'm getting:

    20-10-22 09:47:15.017673-0700 RenegadeRacing[898:142850] Metal GPU Frame Capture Enabled
    2020-10-22 09:47:15.018621-0700 RenegadeRacing[898:142850] Metal API Validation Enabled
    2020-10-22 09:47:15.722752-0700 RenegadeRacing[898:142850] [CAMetalLayer nextDrawable] returning nil because device is nil.
    2020-10-22 09:47:18.235385-0700 RenegadeRacing[898:142850] * Terminating app due to uncaught exception 'Failed to compile shaders', reason: '(null)'

    * First throw call stack:

    (0x1c0b7b3d 0x1b33f067 0x1c0b7a85 0x88666f 0x8854b5 0x861b6f 0x92a3bd 0x92e5c7 0x92e5c7 0x937571 0x93bd41 0x24cd53 0x4aa8cd 0x2d19cd 0x4ab3b1 0x4ab747 0x775193 0x771b87 0x93b7b9 0x936f8b 0x7e651b 0x7e63f9 0x1977e93 0x1ee4a9f1 0x1ee4a839 0x1e2ef1bf 0x1c308a7f 0x1c060c19 0x1c07465f 0x1c073ebd 0x1c071eab 0x1bfc51af 0x1bfc4fd1 0x1d76fb41 0x21347a53 0x7e931b 0x93acc5 0x2d1671 0x441b3f 0x20b6ad 0x75c19d 0x79968b 0xbc66b 0x1b7b24eb)

    Paul Gene Thompson
    @PaulGene
    Not sure directx is worth the effort, OpenGL is working fine on Windows and I cant see Microsoft banning it any time soon
    Hugh Sanderson
    @hughsando
    Looks like it is not creating the context. This should be happening in setupStageLayer from UIStageView template. Do you override this template? Do you see "setupStageLayer" in a debug layer. I wonder if it is to do with how it is launched. I will try some other apps/devices.
    Hugh Sanderson
    @hughsando
    OpenGL being a bit flakey is the main reason for the Angle library. I think recent nvidia/amd cards work ok, but some embedded systems really (did) benefit from DX over Opengl., not sure what the state of that is now. I guess xbox/windows apps too.
    Is anyone using WebGL stuff in anger? I have been thinking about doing some 3D and wondering if anyone has any ideas or suggestions here.
    Paul Gene Thompson
    @PaulGene
    I'm not overriding UIStageView
    codeservice
    @codeservice
    3D works well for me on NME with classic OpenGL, I am running Away3D without many problems on it. What I am thinking, if so many developers familiar with OpenGL, maybe its resonable to keep supporting OpenGL shaders and provide coverters for different systems. Theoretically Anger should do that, but I didnt really try this yet. Shaders is key for 3D and custom graphics efects, it will be great to have unified standart here
    Hugh Sanderson
    @hughsando
    Yes, I think Kha and maybe Heaps have a solution here. My understanding is that they use a slightly different language that compiles to opengl/metal/vulcan/dx as required. It might be possible to steal a library, or do something like a "KhaView" or "HeapsView" like the current "OpenGLView" and insert it into the 2D scene graph. Or, as you say, use some of the Angle libraries.
    codeservice
    @codeservice
    Also, whats interesting, Away3D using AGAL. NME converting it to OpenGL shaders. Probably Adoby made AGAL as unified standart language for shaders, same idea to have something universal
    Carlos Madrazo
    @madrazo
    This is solved by SPIRV-Cross. You can use GLSL, HLSL or your own shader format and compile it to the intermediate language SPIR https://www.khronos.org/spir/
    Carlos Madrazo
    @madrazo
    I had the idea to integrate a 3DSprite object on top of GLView, like for 2.5D games. I mentioned this some months ago. My idea is also to follow GLTF format, so I already was able to load GLTF files https://github.com/madrazo/nme-go/tree/sprite3d_
    in that case you have already predefined materials with variables, so you dont need to even use shaders directly
    Carlos Madrazo
    @madrazo
    you just export gltf files from Blender XD
    Paul Gene Thompson
    @PaulGene
    We should move this chat to a haxe discord room, apart from about 4-5 of us there is nobody else here
    We might pick up some new devs
    Hugh Sanderson
    @hughsando
    Yes, There used to be an NME channel over there, but it may have got shut down in favour of here. I am happy to move - I think it is a good idea - but really only want to monitor one place.
    Paul Gene Thompson
    @PaulGene
    Yeah no point having multiple chats
    I'll try and get an NME room put back
    Peter Achberger
    @Antriel
    Should be easy, just ask NotBilly to put it back.
    Paul Gene Thompson
    @PaulGene
    Antriel :D thanks...
    Paul Gene Thompson
    @PaulGene
    Ok NME room is back...
    I'll be active in there instead of here from now on!
    Hugh Sanderson
    @hughsando
    Yes - it's official. Moving to discord.
    nanjizal
    @nanjizal
    discord is down is that link to nme channel in haxe?
    nanjizal
    @nanjizal
    working again
    Thomas Uster
    @thomasuster
    Hey