Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (755)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  channels  (Read 1592 times)
0 Members and 1 Guest are viewing this topic.
Offline khoel

Innocent Bystander

« Posted 2006-04-21 09:44:14 »

first of all, thanks for developing the SGS, and i hope the final licence will allow academic research to be made with this product... Smiley

to my topic; what would be the best way to send position updates between players in the SGS-environment? my initial idea was to use a quad tree on the server to check what players are in sight, and then forward position updates that arrive to the players in the same quad.

now the question is; should i do this manually (as in, the server will re-send the update messages), or should i create a channel for each quad that the players enter and leave and use broadcasting to send updates to all players in that quad space? (ignore cheating/security aspects for now)

i guess it all comes down to how you envisioned the use of the channels in SGS, how do they scale, etc. etc.

how does the broadcasting on a channel work? does it send all data through the server or does it use p2p between the clients?

thanks for any replies!
Offline Jeff

JGO Coder

Got any cats?

« Reply #1 - Posted 2006-04-23 18:51:22 »

Yup.  Good question.

Answer, you want to create a channel for each leaf on the quad tree and assign the players to them.

The reason is ebcause it is MUCH faster and scales MUCh better to do havey-volume communication across a channel ad directly between players then to involve the logic layer of the server.  The logic layer has to do a  lot more because it is preserving referentially integorus presistance  on that level..

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!
Pages: [1]
  ignore  |  Print  

DesertCoockie (36 views)
2018-05-13 18:23:11

nelsongames (82 views)
2018-04-24 18:15:36

nelsongames (74 views)
2018-04-24 18:14:32

ivj94 (755 views)
2018-03-24 14:47:39

ivj94 (85 views)
2018-03-24 14:46:31

ivj94 (626 views)
2018-03-24 14:43:53

Solater (101 views)
2018-03-17 05:04:08

nelsongames (182 views)
2018-03-05 17:56:34

Gornova (408 views)
2018-03-02 22:15:33

buddyBro (1068 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!