https://linen.dev logo
Join Discord
Powered by
# ceramic
  • b

    billowy-waiter-28954

    09/14/2022, 11:38 PM
    I'll have a fix for next ceramic release
  • b

    billowy-waiter-28954

    09/14/2022, 11:38 PM
    Well, in several audio backends, I cannot get the position of an audio playback directly, so I'm computing it with app timestamps
  • b

    billowy-waiter-28954

    09/14/2022, 11:39 PM
    But the timestamp being used in some situations was slightly delayed
  • b

    billowy-waiter-28954

    09/14/2022, 11:39 PM
    (because it was using the one updated only once by frame, well this is pretty normal, but that's not precise enough for audio)
  • b

    billowy-waiter-28954

    09/14/2022, 11:40 PM
    Anyway, I ensured that when the audio backend needs to get an app timestamp, that timestamp is up to date
  • b

    billowy-waiter-28954

    09/14/2022, 11:40 PM
    and that makes the audio more consistent between web & native targets
  • b

    billowy-waiter-28954

    09/14/2022, 11:41 PM
    This, combined with the use of miniaudio backend for soloud (instead of SDL audio) to reduce latency
  • b

    billowy-waiter-28954

    09/14/2022, 11:41 PM
    It's giving pretty good results, but I don't have all my devices to test yet so the release will wait for now
  • f

    full-waitress-10953

    09/15/2022, 6:25 AM
    i've been quite for a while now, just wanted to give an update 🙂 I'm currently working on a model based rudp network layer which will most likely be an open source repo in the end. My focus is to provide easy modeling of network data and sending/receiving on multiplatform (incl. web) So how it works is: 1. define a model and whether or not the properties should be reliable/ordered 2. boot up a network 3. create a model instance with a specific id 4. change the model on tick and send it. The receiver will automatically mutate the model on its side and provide global access trough the network layer. some examples:
  • f

    full-waitress-10953

    09/15/2022, 6:25 AM
    Copy code
    haxe
    @ordered
    class ExampleModel extends FiberModel {
        var text: String = 'hello world';
        var number: Int = 420;
        var floatingNumber: Float = 0.815;
        var flag: Bool;
    
        @unreliable
        var list: Array<Int> = [1, 2, 3, 4, 5];
    }
  • f

    full-waitress-10953

    09/15/2022, 6:27 AM
    Copy code
    haxe
    public function tick(Delta: Float) {
        var myModel = new ExampleModel('myId');
    
        #if client
        myModel.number = 200;
        myModel.submodel.property = 'value';
        Fiber.send(myModel);
        #end
    
        #if server
        log.info(myModel.number); // 200
        #end
    }
  • f

    full-waitress-10953

    09/15/2022, 6:28 AM
    i plan of implementing automatic interpolation and reconciliation etc.
  • f

    full-waitress-10953

    09/15/2022, 6:29 AM
    End goal is to have a very streamlined netcode that is easy to maintain, if ur interested for a testrun and/or want to contribute, let me know.
  • b

    billowy-waiter-28954

    09/15/2022, 6:50 PM
    https://ceramic-engine.com/examples/pixel-platformer/
  • f

    full-waitress-10953

    09/15/2022, 6:50 PM
    keybinds are screwed 😄
  • f

    full-waitress-10953

    09/15/2022, 6:50 PM
    up is left
  • f

    full-waitress-10953

    09/15/2022, 6:51 PM
    and left is jump
  • f

    full-waitress-10953

    09/15/2022, 6:51 PM
    wasd movement that is
  • b

    billowy-waiter-28954

    09/15/2022, 6:51 PM
    Damn you're right
  • b

    billowy-waiter-28954

    09/15/2022, 6:51 PM
    Use the arrows then 😅
  • b

    billowy-waiter-28954

    09/15/2022, 6:51 PM
    (will fix that)
  • f

    full-waitress-10953

    09/15/2022, 6:51 PM
    😛
  • b

    billowy-waiter-28954

    09/15/2022, 6:53 PM
    Pushed the fix, should be effective in 10 minutes
  • b

    billowy-waiter-28954

    09/15/2022, 6:54 PM
    Anyway, there is a new release of Ceramic https://github.com/ceramic-engine/ceramic/releases/tag/v0.17.1
  • f

    full-waitress-10953

    09/15/2022, 6:54 PM
    i still have to do the input rebind demo right? 😄
  • f

    full-waitress-10953

    09/15/2022, 6:54 PM
    😅
  • b

    billowy-waiter-28954

    09/15/2022, 6:55 PM
    Pull requests to the ceramic-samples repo are open 😉
  • f

    full-waitress-10953

    09/15/2022, 6:57 PM
    it was more a mental reminder for me
  • b

    billowy-waiter-28954

    09/15/2022, 7:03 PM
    (the wasd thing is fixed)
  • f

    faint-toothbrush-51643

    09/17/2022, 2:47 AM
    i may be misunderstanding how
    depth
    works
1...171819...124Latest