Skip to main content

Approximation Algorithm for Estimating Distances in Distributed Virtual Environments

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12247))

Abstract

This article deals with the issue of guaranteeing properties in Distributed Virtual Environments (DVEs) without a server. This issue is particularly relevant in the case of online games, that operate in a fully distributed framework and for which network resources such as bandwidth are the critical resources. Players typically need to know the distance between their character and other characters, at least approximately. They all share the same position estimation algorithm but, in general, do not know the current positions of others. We provide a synchronized distributed algorithm \(\mathcal {A}_{lc}\) to guarantee, at any time, that the estimated distance \(d_{est}\) between any pair of characters A and B is always a \(1+\varepsilon \) approximation of the current distance \(d_{act}\), regardless of movement pattern, and then prove that if characters move randomly on a \(d\)-dimensional grid, or follow a random continuous movement on up to three dimensions, the number of messages of \(\mathcal {A}_{lc}\) is optimal up to a constant factor. In a more practical setting, we also show that the number of messages of \(\mathcal {A}_{lc}\) for actual game traces is much less than the standard algorithm sending actual positions at a given frequency.

Supported by the French ANR project ANR-16-CE40-0023 (DESCARTES).

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    The traces are available at https://doi.org/10.5281/zenodo.583600.

References

  1. Heroes of Newerth. http://www.heroesofnewerth.com/. Accessed 27 Aug 2019

  2. Source Multiplayer Networking - Valve Developer Community. https://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking. Accessed 27 Aug 2019

  3. IEEE standard for distributed interactive simulation-application protocols. IEEE Std 1278.1-2012 (Revision of IEEE Std 1278.1-1995), pp. 1–747, December 2012. https://doi.org/10.1109/IEEESTD.2012.6387564

  4. Aggarwal, S., Banavar, H., Khandelwal, A., Mukherjee, S., Rangarajan, S.: Accuracy in dead-reckoning based distributed multi-player games. In: 3rd ACM SIGCOMM Workshop on Network and System Support for Games, pp. 161–165. NetGames, ACM (2004). https://doi.org/10.1145/1016540.1016559

  5. Beaumont, O., Castanet, T., Hanusse, N., Travers, C.: Approximation algorithm for estimating distances in distributed virtual environments. Research report, February 2020. https://hal.archives-ouvertes.fr/hal-02486218

  6. Bharambe, A., et al.: Donnybrook: enabling large-scale, high-speed, peer-to-peer games. In: ACM SIGCOMM Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications, pp. 389–400. ACM (2008). https://doi.org/10.1145/1402946.1403002

  7. Boulanger, J.S., Kienzle, J., Verbrugge, C.: Comparing interest management algorithms for massively multiplayer games. In: Proceedings of 5th ACM SIGCOMM Workshop on Network and System Support for Games. NetGames 2006. ACM, New York (2006). https://doi.org/10.1145/1230040.1230069

  8. Cai, W., Lee, F.B.S., Chen, L.: An auto-adaptive dead reckoning algorithm for distributed interactive simulation. In: Workshop on Parallel and Distributed Simulation (1999). https://doi.org/10.1109/PADS.1999.766164

  9. Carlini, E., Lulli, A.: A spatial analysis of multiplayer online battle arena mobility traces. In: Heras, D.B., Bougé, L. (eds.) Euro-Par 2017. LNCS, vol. 10659, pp. 496–506. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-75178-8_40

    Chapter  Google Scholar 

  10. Kharitonov, V.Y.: Motion-aware adaptive dead reckoning algorithm for collaborative virtual environments. In: 11th ACM SIGGRAPH International Conference on Virtual-Reality Continuum and Its Applications in Industry, VRCAI 2012, pp. 255–261. ACM (2012). https://doi.org/10.1145/2407516.2407577

  11. Li, Z., Tang, X., Cai, W., Li, X.: Compensatory dead-reckoning-based update scheduling for distributed virtual environments. Simulation 89(10), 1272–1287 (2013). https://doi.org/10.1177/0037549712470857

  12. Liu, E.S., Theodoropoulos, G.K.: Interest management for distributed virtual environments: A survey. ACM Comput. Surv. 46(4), 51:1–51:42 (2014). https://doi.org/10.1145/2535417

  13. Marshall, D., McLoone, S., Ward, T.E., Delaney, D.: Does reducing packet transmission rates help to improve consistency within distributed interactive applications? In: CGAMES06, November 2006. http://mural.maynoothuniversity.ie/1283/

  14. Mauve, M., Vogel, J., Hilt, V., Effelsberg, W.: Local-lag and timewarp: providing consistency for replicated continuous applications. IEEE Trans. Multimedia 6, 47–57 (2004). https://doi.org/10.1109/TMM.2003.819751

    Article  Google Scholar 

  15. Millar, J.R., Hodson, D.D., Peterson, G.L., Ahner, D.K.: Consistency and fairness in real-time distributed virtual environments: paradigms and relationships. J. Simul. 11(3), 295–302 (2017). https://doi.org/10.1057/s41273-016-0035-8

    Article  Google Scholar 

  16. Ricci, L., Carlini, E.: Distributed virtual environments: from client server to cloud and P2P architectures. In: 2012 International Conference on High Performance Computing Simulation (HPCS), pp. 8–17 (2012). https://doi.org/10.1109/HPCSim.2012.6266885

  17. Zhou, S., Cai, W., Lee, B.S., Turner, S.J.: Time-space consistency in large-scale distributed virtual environments. ACM Trans. Model. Comput. Simul. 14(1), 31–47 (2004). https://doi.org/10.1145/974734.974736

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tobias Castanet .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Beaumont, O., Castanet, T., Hanusse, N., Travers, C. (2020). Approximation Algorithm for Estimating Distances in Distributed Virtual Environments. In: Malawski, M., Rzadca, K. (eds) Euro-Par 2020: Parallel Processing. Euro-Par 2020. Lecture Notes in Computer Science(), vol 12247. Springer, Cham. https://doi.org/10.1007/978-3-030-57675-2_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-57675-2_23

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-57674-5

  • Online ISBN: 978-3-030-57675-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics