Game Scene Stabilizer - Version 6.0.0

Discussion in 'JS Plugin Releases (RMMV)' started by chaucer, Jan 14, 2018.

  1. chaucer

    chaucer Veteran Veteran

    Messages:
    234
    Likes Received:
    346
    Location:
    Lost at sea
    First Language:
    English
    Primarily Uses:
    RMMV
    Scene Stabalizer : 6.0.0
    Author : Chaucer

    Introduction :


    This plugin is designed to make transitions between scenes smoother. When changing scenes in mv, theres a slight lag spike
    which occurs when loading files & rendering images, this is more apparent in games which use large images, or lots of images, This plugin will pause the game from updating until all elements in the scene have been loaded AND are ready to be rendered. I seen a few people on the forum bring this issue up, so I decided I'd try to come up with a solution, unfortunately I've been a bit busier than expected, so it's taken me a bit longer to get around to this than I anticipated.​
    Features :
    • Transitioning between scenes is much smoother.
    • Options to wait for scene to stabalize when loading animations and pictures.
    Screenshots :
    N/A​

    Terms of use :

    This Plugin may be used commercially, or non commercially so long as credit
    is given, either in the games credit section, or in a text file alongside
    the game. This plugin may NOT be sold, or Plagiarized. This plugin may
    be extended upon, and shared freely.

    Download :

    Version 5.1.1
    Version 6.0.0
     
    Last edited: Jul 4, 2019
    #1
  2. peq42_

    peq42_ Yeet Veteran

    Messages:
    452
    Likes Received:
    269
    Location:
    Brazil
    First Language:
    Portuguese(BR)
    Primarily Uses:
    RMMV
    Perfect! That solves audio lag problems when i enter a different map, that was really annoying.

    Thank you!
     
    #2
    Oscar92player likes this.
  3. Biestmann

    Biestmann Heaven's Height Veteran

    Messages:
    291
    Likes Received:
    405
    First Language:
    German
    Primarily Uses:
    RMMV
    Intriguing. I'll give it a try. I hope I don't run into any compability issues!
     
    Last edited: Jan 15, 2018
    #3
  4. chaucer

    chaucer Veteran Veteran

    Messages:
    234
    Likes Received:
    346
    Location:
    Lost at sea
    First Language:
    English
    Primarily Uses:
    RMMV
    @elpeleq42 Interesting, I didn't intend for it to resolve any audio latency, I don't have any issues with audio on my computer, so It's possible for me to test this on my end. However If any one else with audio lag can confirm it works for them as well, it'd be appreciated. I only wrote this plugin to resolve the graphical hiccup on starting new scenes, so I don't think I'll add audio lag fix to the feature list just yet, as I can't confirm this for myself.

    @Gin-Shiio I do believe this plugin will not come up any compatability issues, but nothings impossible, :D I'd love to hear your results, especially if you find any compatability issues.

    I'm also looking into a way to fix the lag when loading images on the fly( for example, playing a large animation in battle ), so I might update this plugin when I get a chance( and if it isn't too awkward ), currently this plugin only works on the start of a new scene, and does not work for on the fly loading.
     
    #4
    Oscar92player likes this.
  5. JtheDuelist

    JtheDuelist Just a dev who actually got a game finished Veteran

    Messages:
    1,150
    Likes Received:
    1,413
    Location:
    RMW Forums, Granvia, or Askr
    First Language:
    English
    Primarily Uses:
    RMMV
    @chaucer My game uses large audio files (some nearing 6 minutes long and about 3-5MB a song) which caused huge lage spikes when changing maps. This plugin actually fixed all audio-based lag spikes (and from the sounds of it, you didn't intend this originally, so that is icing on the cake.) and now I have zero lag between transitions- this plugin is a lifesaver if I ever needed one!

    As for plugin compatibility, from testing with in my own game, here are ones that are fully compatible with your plugin as of right now:
    StabilizerCompatibility.png
     
    #5
    Oscar92player likes this.
  6. peq42_

    peq42_ Yeet Veteran

    Messages:
    452
    Likes Received:
    269
    Location:
    Brazil
    First Language:
    Portuguese(BR)
    Primarily Uses:
    RMMV
    Since this plugin waits until everything is loaded to execute, it fix the audio lag by either loading audio before executing thing in the map OR freeing PC resources to load audios faster, and so fixing the problem(at least, on some PCs)

    Also, about compatibility: Doesn't seem to have any problem with any kind of plugin. I've 43 plugins in my game, and it's working very well.
     
    #6
    Oscar92player likes this.
  7. fizzly

    fizzly Veteran Veteran

    Messages:
    394
    Likes Received:
    272
    Location:
    Poland
    First Language:
    Polish
    Primarily Uses:
    N/A
    Works like a charm! It should be a build-in feature.
     
    #7
    CleanWater and Oscar92player like this.
  8. OnslaughtSupply

    OnslaughtSupply Ssshhh... Veteran

    Messages:
    730
    Likes Received:
    762
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    I use a ton of plugins and galvs character frames, which adds more than 3 frames per character and would sometimes get a little stutter when changing scenes, that's gone now. Thanks Chaucer. Also I have a good amount of plugins going, no conflicts so far.
     
    #8
    Oscar92player likes this.
  9. thephoenix112

    thephoenix112 Veteran Veteran

    Messages:
    81
    Likes Received:
    54
    Wow, this...actually fixes more than I think you thought it would. Awesome, essential plugin.
     
    #9
    Oscar92player likes this.
  10. Oscar92player

    Oscar92player Veteran Veteran

    Messages:
    443
    Likes Received:
    187
    Location:
    Benalmádena - Málaga - Spain
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    I'm going to test this with my project. If it fixes what I'm reading here in all the posts in this thread, you are going to appear in the credits of my project in really BIG capital letters, I swear it (and your name will be in a more important position than the Kadokawa Game staff too).

    I will update this post once I've done with the tests.

    P.S.: Also, if this can make a game run smooth without FPS drops or lag, I would like to suggest to our beloved staff members and developers to pin up this thread in the plugins forum, as a bug fix for those pisky bugs related with optimization.

    UPDATE:
    So, I've made a little test in my project, using two versions of the MV core (v1.5.1 and v1.4.1). The results are clear: this plugin fix, if not all, at least the majority of bugs related with optimization and stability with the Scenes.

    With my project, it does not solve the sound delay issue, but I think it is less pronounced than normaly without any plugin. Also, the screen tearing in big maps is gone when working with both versions (v1.5.1 and v1.4.1), but... as I posted in this thread months ago, there are persistent issues in v1.5.1 with the Change Tileset command if you use it continuously in a parallel process to make map animations. However, this issues are less pronounced with the help of this plugin too, and using it along with Yanfly's FPS Synch Option plugin helps a lot.

    Something I would like to say, it's that FPS drops are present in both versions of the MV core, but the game runs smoothly in almost every moment and change of Scene, so they are not noticed unless you open the FPS window with F2 (and that, my friends, makes a big difference than before).

    So, finally, we have a functional bug fix for this optimization issues with Scenes. I'll say even more: we have a functional bug fix for optimization issues with Scenes in RPG Maker MV made by a forum user, who has done much more than Kadokawa Games in all this years since the release of the program (and never figured out how to fix them).

    I love you, man! You've made a great plugin, and I will give you a good position in my game credits, and I don't know how to thank you enough about this! Over and out!
     
    Last edited: Jan 17, 2018
    #10
  11. thephoenix112

    thephoenix112 Veteran Veteran

    Messages:
    81
    Likes Received:
    54
    It fixed a few audio issues, scene change issues, menu issues...yeah, I'd argue they need to put this in as a full official update, there's no way this doesn't benefit any game. 100% compatible with everything so far.
     
    #11
    Oscar92player likes this.
  12. Oscar92player

    Oscar92player Veteran Veteran

    Messages:
    443
    Likes Received:
    187
    Location:
    Benalmádena - Málaga - Spain
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    This is an update of the previous post:
    So, I've made a little test in my project, using two versions of the MV core (v1.5.1 and v1.4.1). The results are clear: this plugin fix, if not all, at least the majority of bugs related with optimization and stability with the Scenes.

    With my project, it does not solve the sound delay issue, but I think it is less pronounced than normaly without any plugin. Also, the screen tearing in big maps is gone when working with both versions (v1.5.1 and v1.4.1), but... as I posted in this thread months ago, there are persistent issues in v1.5.1 with the Change Tileset command if you use it continuously in a parallel process to make map animations. However, this issues are less pronounced with the help of this plugin too, and using it along with Yanfly's FPS Synch Option plugin helps a lot.

    Something I would like to say, it's that FPS drops are present in both versions of the MV core, but the game runs smoothly in almost every moment and change of Scene, so they are not noticed unless you open the FPS window with F2 (and that, my friends, makes a big difference than before).

    So, finally, we have a functional bug fix for this optimization issues with Scenes. I'll say even more: we have a functional bug fix for optimization issues with Scenes in RPG Maker MV made by a forum user, who has done much more than Kadokawa Games in all this years since the release of the program (and never figured out how to fix them).

    I love you, man! You've made a great plugin, and I will give you a good position in my game credits, and I don't know how to thank you enough about this! Over and out!

    A suggestion for the staff members and developers:
    I suggest you, as a user of RPG Maker Web Forums and as game developer in RPG Maker MV, to pin up this thread in the JS Plugin Releases (RMMV), in order to be noticed by all the users who enter this forum, searching for bug fixes related with lag and optimization issues.
     
    #12
  13. chaucer

    chaucer Veteran Veteran

    Messages:
    234
    Likes Received:
    346
    Location:
    Lost at sea
    First Language:
    English
    Primarily Uses:
    RMMV
    Wow, thanks for all the feedback guys, I'm glad to hear the plugin is this useful :D I spent a few minutes looking into animations and pictures tonight, and I've updated the plugin to 1.4.0. In the new version animations and pictures now can trigger this plugin, by default they are disabled, but can be enabled in the plugin parameters, I'm unsure if I'm 100% satisfied with the turnout, I may try to find another aproach later down the road, so I'm leaving it optional for now.
     
    #13
    TheTitan99 and Oscar92player like this.
  14. TheTitan99

    TheTitan99 Veteran Veteran

    Messages:
    165
    Likes Received:
    65
    First Language:
    English
    Primarily Uses:
    RMMV
    So far, this is great. Jarring lag spikes are removed. If I can find a between scene preloader plugin, RPG Maker MV will be absolutely marvelous.

    Keep up the good work!
     
    #14
  15. chaucer

    chaucer Veteran Veteran

    Messages:
    234
    Likes Received:
    346
    Location:
    Lost at sea
    First Language:
    English
    Primarily Uses:
    RMMV
    @TheTitan99 Even if you found a preloader plugin for mv, it would do you no good, sorry to say, you can already preload images in MV and infact, that's done in the transitions between scenes. The real problem is that once the images are starting to be rendered( once the scene starts ), the images take time to be uploaded to the GPU. Whats really needed, is a plugin to pre-upload to GPU, and PIXI has such a method built in, but unfortunately, it's not being utilized by MV, and theres no easy way of just slapping it in through a plugin, which is why my plugin only pauses the scene until the images have been loaded to the gpu.
     
    #15
    CleanWater and Oscar92player like this.
  16. Oscar92player

    Oscar92player Veteran Veteran

    Messages:
    443
    Likes Received:
    187
    Location:
    Benalmádena - Málaga - Spain
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    In fact, I tried using the TDDP Preload Manager along with your plugin, and it works very well. Also, I'm not using the preloader for images, animations or scenes, but to load audio files such as BGM, BGS, ME and SE, in order to avoid the audio delay (using the Web Audio add-on too).

    There are no incompatibilities in the test I realized a moment ago, so as long as you don't need to load graphic files, I think is okay.
     
    #16
  17. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,284
    Likes Received:
    1,251
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Found a conflict with YEP Core Engine. It resets Animation rate changes to default and thus messing any custom animation rates.
     
    #17
  18. chaucer

    chaucer Veteran Veteran

    Messages:
    234
    Likes Received:
    346
    Location:
    Lost at sea
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks @Tuomo L , I've updated my plugin with how it handles animations, now it will upload textures to the gpu before the animation starts playing, which was what I was originally planning on. I also realized my stabalize_pictures parameter wasn't working correctly :headshake: so I've also patched that as well, and it works as it should, I believe this new version should be compatible with YEP Core Engine, I honestly haven't tested it out yet myself, so I can't say for sure, I'll have to check it out when get more time, if anyone finds any other issues just let me know, I'll be more than happy to patch it if I can. :)
     
    #18
    Oscar92player likes this.
  19. AdamSakuru

    AdamSakuru StudioDaeera Veteran

    Messages:
    314
    Likes Received:
    168
    Location:
    Calgary, Alberta.
    First Language:
    English
    Primarily Uses:
    N/A
    Where should this plugin be placed? Above everything else?
     
    #19
  20. chaucer

    chaucer Veteran Veteran

    Messages:
    234
    Likes Received:
    346
    Location:
    Lost at sea
    First Language:
    English
    Primarily Uses:
    RMMV
    The position of this plugin in the plugin manager should not have any impact as I'm mostly working with methods that hardly any other plugin would, but if there ever were any issues, I believe placing this below everything else, would be the best place for it. :)
     
    #20
    Oscar92player likes this.

Share This Page