Search Unity

adding feature : UpdatePerSecond void

Discussion in 'Editor Workflows' started by christiaanbrant, May 31, 2019.

?

Would you like a this new standard UpdatePerSecond

  1. Yes

  2. No

Results are only viewable after voting.
  1. christiaanbrant

    christiaanbrant

    Joined:
    Nov 12, 2018
    Posts:
    1
    I think it would be nice to have an additional Update void next to the standard Update and the LateUpdate. But this one would only update once per realtime second instead of creating your own with an IEnummerator.

    What do you all think?
     
  2. It's a bad idea to clutter the API with arbitrary things like this. You have the means to do it. Why would Unity add this feature? Why not half a second or two seconds? I need one every 5 frames, let's do that instead.

    See what's the problem? The fact that it's good for you does not mean it's good for everyone and every addition like this slows down the update cycle a little bit. So "features" like this are not good candidates to add, because they are not universal enough.
     
    Peter77 likes this.