RuneMate / Issues

Client and API Issue tracking. See README for more information.
8 stars 0 forks source link

Entity Hiding to reduce CPU/memory usage #37

Open ghost opened 5 years ago

ghost commented 5 years ago

Is your feature request related to a problem? Please describe. When in certain areas of the game (the GE and Wintertodt's prison are great examples), the rendering of all other players around you sometimes cause interaction issues, and definitely cause higher CPU usage. There are very few bots that require you to interact with other players, so it would be nice to be able to hide them.

The client already hides other players in super crowded areas (you'll only see people immediately adjacent to you), but it is rather conservative to preserve the game experience, which bots don't care about.

Hiding useless gameobjects could also help reduce CPU/memory usage, but IMO the scenic entity hider is sufficient regarding gameobjects.

Describe the solution you'd like A client option to disable rendering of other players, and hopefully have other players not show up in menus if possible.

Describe alternatives you've considered None

Additional context None

ccarpenter04 commented 5 years ago

It's under consideration although the circumstances for its usage would have to be opted-in for both the bot in use and user. By requiring a dual opt-in, we can guarantee that users will understand why they aren't seeing portions of the scene that are normally there, and by making the bot opt-in then it is claiming support for the feature and acknowledging that not being able to interact with the hidden entities wouldn't have a negative effect.

By having both sides opt-in, we can afford to offer more options in that regard to reduce resource usage such as hiding npcs, ground items, game objects, projectiles, and the list goes on.

Some other possibilities we could investigate to improve performance would be options for disabling the rendering/loading of non-flat textures, animations, and audio effects (I'd imagine this last one in particular may reduce ram usage by a noticeable amount).

ghost commented 5 years ago

That all sounds great. I think double opt-in is an excellent idea.