Jump to content
  • Advertisement
Sign in to follow this  
caymanbruce

How to write robust, efficient and well structured client interpolation code?

This topic is 621 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Sorry, I don't understand what you are talking about with the state lists.

Yes, I mean recalculate it. Typically this is a couple of multiplications and a few additions; the sort of thing a modern computer does billions of times per second normally.

Share this post


Link to post
Share on other sites
Advertisement

@Kylotan I mean I put those extra properties in because I want to query it directly from "currentRenderState" when I want to display or use them on client. But if I don't put those properties into "currentRenderState" I need to maintain a separate data structure that only contains those values. That will be a lot of work when adding or deleting values(player status) in it.  I guess that will be fine?

Edited by caymanbruce

Share this post


Link to post
Share on other sites

It shouldn't be a lot of work. You don't need everything about one entity to live in one massive lump of data anyway. That's never going to scale well. Separate the data you need to interpolate from the data you don't.

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!