Hello everybody,
I would like to ask what would be better for performance?
-> A fully transparent window with screen size (664 x 504), where everything is in one refresh method and it's updating when one thing in it changes or each frame when needed
~ OR ~
-> Fully transparent windows with smaller sizes, where in general things are updated separately
Reference image:
For now I have 3 separate windows and I'm planning to add 4th for BOSS HP, which will be refreshed each frame when boss appears.
It's better to make one full-screen window and refresh everything at once when something changes + each frame when boss appears?
Or should I leave these 3 windows (each is refreshed separately when needed - each is refreshed upon certain action) and make another separate one for BOSS HP (which will be refreshed each frame when boss appears?
Basically which one will be better optimized and will cause less FPS drop? I cannot test on my PC, since FPS remains untouched, but I know this can bring problems to the others right? Thank you in advance.
Oh and to be clear - EVERYTHING is happening in one scene - in one script.
I would like to ask what would be better for performance?
-> A fully transparent window with screen size (664 x 504), where everything is in one refresh method and it's updating when one thing in it changes or each frame when needed
def something_happens @some_window.refresh(@var1,@var2,@var3,@var4,@var5)end
Code:
class Window_SomeWindow < Window_Base def initialize (...) < Please dont tell me it will crash my game, because I know this. Okay Shaz? ( ͡° ͜ʖ ͡°) end def refresh(var1 = 8,var2 = 4,var3 = 6,var4 = 1,var5 = 99) contents.clear #stuff that refers mainly to these five variables end def update super refresh if @some_variable # there'll be need to update something each frame for some time endend
-> Fully transparent windows with smaller sizes, where in general things are updated separately
def something_happens @some_window.refresh(@var1)end
~ 5 of these methods (to @var5)
class Window_SomeWindow < Window_Base def initialize (...) < Please dont tell me it will crash my game, because I know this. Okay Shaz? ( ͡° ͜ʖ ͡°) end def refresh(var1 = 8) contents.clear #stuff that refers mainly to that variable end #no update method - it's updated manually from codes aboveend
~ 5 of these classes for 5 variables (where one of them will be updated each frame when needed)
Code:
def something_else_happens @some_other_window.refresh(@var2)end
class Window_SomeWindow < Window_Base def initialize (...) < Please dont tell me it will crash my game, because I know this. Okay Shaz? ( ͡° ͜ʖ ͡°) end def refresh(var1 = 8) contents.clear #stuff that refers mainly to that variable end #no update method - it's updated manually from codes aboveend
Code:
class Window_SomeOtherWindow < Window_Base def initialize (...) < Please dont tell me it will crash my game, because I know this. Okay Shaz? ( ͡° ͜ʖ ͡°) end def refresh(var2 = 8) contents.clear #stuff that refers mainly to that variable end def update super refresh if @some_variable # there'll be need to update that each frame for some time endend
For now I have 3 separate windows and I'm planning to add 4th for BOSS HP, which will be refreshed each frame when boss appears.
It's better to make one full-screen window and refresh everything at once when something changes + each frame when boss appears?
Or should I leave these 3 windows (each is refreshed separately when needed - each is refreshed upon certain action) and make another separate one for BOSS HP (which will be refreshed each frame when boss appears?
Oh and to be clear - EVERYTHING is happening in one scene - in one script.