Decorations (non-processing events)

Description of the Feature:
At the moment, maps usually use a good number of events for decorative purposes, either to get an additional map layer or to have the sprite animation playing on the map - but without giving those decorative events any content or condition or any function beyond displaying a tile or a sprite.

However, because those events are still fully-capable events the engine still has to check them for updates to conditions or changing pages and so on. And that adds to the lag of the game, especially on maps that use them a lot to look nicer. After all, there are very limited methods to get animations on the map otherwise.

I suggest to make a new construct that would be handled by the engine as a limited form of event, one that would be displayed on the map like all other events, but not have any content or condition (or additional pages) and because of that is also removed from the regular loop and updates for checking on event conditions or event processing.



Why is this feature good?
  • reduces processing and lag on maps
  • might make later additions for decorative functions easier (like an offset X/Y for non-grid-locked display on the decoration)

Possible issues with this feature?
  • might require rewriting of the map/event data structures, depending on how it is implemented (can cause incompatibilities)
I agree - this would be a really nice feature. The "extra layer" use would be best solved by - well, allowing for an extra map layer, but there are a lot of times where a designer would want to animate a decoration, change a decoration's image, or hide a decoration.

Would probably best be implemented by having a checkbox or similar on the Event screen to designate the event as a "deco" - meaning locked-out event pages, no processing for event movement or its associated collision checks, and no checking for its event start conditions.
Absolutely, if this feature is feasible to implement, having a engine-level method to place decorations would be amazing, especially if it's possible to work around the grid.
This I can get behind.
I like this, but I think it might be good to have additional pages and conditions - just no event commands. You might want a lit candle only when it's nighttime, or a burning fire only when it's snowing outside, for instance. Though I guess those could be done with a single page with a condition, using map tiles for the 'off' version.
@Shaz But if the conditions are still checked, there would be no performance improvement as the content is only processed after being triggered anyway. The performance improvement would only happen if it is removed from those checks (if I understood the way the events are checked correctly).
And as long as the decoration can still be targeted by set move route, you could change the sprite by that command from a full event anyway.
Events are only checked to see which page needs to be active when the map needs to be refreshed.
Event commands are checked/run on every frame.

So having a specific type of event that had multiple pages with different images and conditions, but had no event commands to process, would still be a performance improvement.
Could you explain to me why you would want this over say this: https://forums.rpgmakerweb.com/index.php?threads/yanfly-doodads-as-a-built-in-feature.74787/page-2 ? Are you essentially proposing the same thing, just a different solution using events, or is this meant to be for something completely different? They sound very similar to me, as they both solve the "decoration" problem,

Thanks,
- Liquidize
@Liquidize they're basically two different approaches to the same problem. Only one should be implemented based on what would be the better solution - and I don't know enough of yanfly's plugin to point out its advantages or disadvantages.

For example, from a casual glance it looks like as if Yanfly's plugin adds its own mapping layers to the engine, that is something my solution does not need as it would use the existing event functions/layers for display. However I don't know enough about the internal workings of the engine to decide if that would be more of an advantage (everyone likes more mapping layers) or rather a disadvantage (compatibility and complexity of programming).

Implementing Shaz' variant (only remove content but keep conditions and multipages) would give my solution more flexibility as it would allow switching between pages (and thereby changing the decoration dynamically) and perhaps even moving the decoration by changing coordinates or allowing move routes, where Yanfly's solution reads more as a static map solution that only adds layers, offgrid-positioning and animation to the decorations without allowing any changes to them during the game.

So there are different advantages and disadvantages to both solutions as mine would not have the added layers of yanflys, but would allow more option for dynamic changes druing the game.
Thank you for the insight @Andar . When looking to implement a "decorations" solution, I will take the disadvantages and advantages of both into account.

- Liquidize

Original thread: https://forums.rpgmakerweb.com/threads/decorations-non-processing-events.77127/