The most powerful RxJS combo I've ever used (massive performance improvement)

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 25

  • @JoshuaMorony
    @JoshuaMorony  День тому +9

    NOTE: I ended up switching to asyncScheduler instead of animationFrameScheduler. I still don't actually know why yet, but when I tried using animationFrameScheduler somewhere else unrelated in the app, it somehow prevented my existing stream with animationFrameScheduler to stop emitting, asyncScheduler didn't have this problem.

    • @EnnioVersace-sj2ex
      @EnnioVersace-sj2ex День тому

      I don't understand why you dont not simply use requestAnimationFrame here?

  • @yurakhomitskyi8762
    @yurakhomitskyi8762 День тому +1

    Neat.I use observeOn to make sync code async for consistency or to delay code execution by changing the context scheduler

  • @deadlyecho
    @deadlyecho День тому +1

    I love watching your vids man... so knowledgeable

  • @julienwickramatunga7338
    @julienwickramatunga7338 День тому

    Neat trick, well done!

  • @ShneorNagar
    @ShneorNagar 11 годин тому

    My team and I are transitioning our state management from NgRx to Signal Store.
    Could you create a video explaining the best practices for making this change?
    Additionally, are there any guidelines we should follow,
    especially for managing larger state objects?

  • @tiozaoist
    @tiozaoist День тому

    Do you have any course/content about this game development with Angular?

    • @rnd_equilibrium
      @rnd_equilibrium День тому

      Literally says it as 0:24 😅
      (Regarding your first question)

    • @tiozaoist
      @tiozaoist День тому

      @@rnd_equilibrium edited. haha. thanks

  • @fftcg.online5189
    @fftcg.online5189 День тому

    I have written Phaser inside Angular before but found Angular wasn’t much necessary. What parts of angular did you use inside phaser? I am assuming it is the Auth and routing with the phaser rendered in its own route?

    • @JoshuaMorony
      @JoshuaMorony  День тому +4

      The UI is my main motivator for using Angular (the UI is overlaid on top of the game canvas), but I also like being able to use services for data management, and schematics like the web worker generator

  • @bronzekoala9141
    @bronzekoala9141 День тому +18

    Before I watch this: Can you control whether or not youtube translates your videos titles for viewers from other countries? if yes, can you turn it off? I'm german and this title was translated with "rxjs-Beobachtung"... which is just bad. I wish youtube would offer a setting for this for viewers. It's so dumb... my dashboard is flooded with horribly translated titles.

    • @JoshuaMorony
      @JoshuaMorony  День тому +7

      Not as far as I can tell, I've looked through the channel settings and can't see any options for disabling title translations (I got similar comments about the translations being bad on the last video). I've seen that some people are using an extension to disable it, but aside from straight up changing your language settings it doesn't seem there is any way to stop it through settings.

    • @pali122
      @pali122 День тому +1

      @@JoshuaMorony hahaha for me is rxjs observes, is so damn weird for a second I didn't even know what the video was about

    • @zero14111990
      @zero14111990 День тому +1

      @@JoshuaMorony this is for me "rxjs observa" like someone is stalking you

    • @bronzekoala9141
      @bronzekoala9141 День тому +3

      @@JoshuaMorony Alright thanks for trying :) I'll look for a plugin. UA-cam really needs to recognize there are people that are fluent in multiple languages. Must be a weird concept for some folk in silicon valley :D

    • @raulrothschild
      @raulrothschild 3 години тому

      Here in PT-BR "observação rxjs" hahaha

  • @letfoobar
    @letfoobar День тому

    Is this game you are working on open source?

    • @JoshuaMorony
      @JoshuaMorony  День тому

      It isn't, but if there is anything specific you'd like to know I'm happy to talk about it

    • @Billiam112
      @Billiam112 День тому

      @@JoshuaMorony I'd buy the course, if you were to make one, for this game development with angular/phaser. Cool stuff Joshua.

    • @letfoobar
      @letfoobar День тому

      @@JoshuaMorony Nothing specific, just thought it was going to be great learning resource. Keep up good work!

  • @moutonguerrier
    @moutonguerrier День тому

    Does using observeOn here mean you are not using a worker thread anymore ?

    • @JoshuaMorony
      @JoshuaMorony  День тому +1

      I'm not (and wasn't before) using a worker thread for the item generation, as this needs direct DOM access. I am using a worker thread for the generation of the tile layout (the ground essentially). Both of these things are triggered on a "chunk change".

  • @radvilardian740
    @radvilardian740 День тому

    i like debounceTime hehe

  • @ShneorNagar
    @ShneorNagar 11 годин тому

    My team and I are transitioning our state management from NgRx to Signal Store.
    Could you create a video explaining the best practices for making this change?
    Additionally, are there any guidelines we should follow,
    especially for managing larger state objects?