1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android - Bluetooth garbage collector

Discussion in 'Android Development' started by monnti, Sep 12, 2011.

  1. monnti

    monnti Lurker
    Thread Starter

    Hey!

    I am developing a real time game. Therefore, I also want to provide a Bluetooth multiplayer mode. Now there is my problem
     



    1. Download the Forums for Android™ app!


      Download

       
  2. jonbonazza

    jonbonazza Android Expert

    Unfortunately, there really isn't a way around this... in Java at least... Your best bet would be to use the JNI, find a C/C++ BT library and write it in native code.
     
  3. monnti

    monnti Lurker
    Thread Starter

    I have looked inside of the AndEngine Multiplayer Extension. They use a DataOutputStream/DataInputStream. But I
     
  4. alostpacket

    alostpacket Over Macho Grande?

    How large are your messages? Can you trim them down and/or can you keep to only sending when needed, and predicting movement/behavoir when waiting for a message?

    If you've ever noticed this is what online games have done for years due to latency etc. When you see a character run sometime they will "rubber band" when stopping or changing direction. That's because the actual position data just caught up with the predicted position.
     
Loading...
Similar Threads - Android Bluetooth garbage
  1. LitonU
    Replies:
    2
    Views:
    312
  2. Daronee
    Replies:
    0
    Views:
    2,397
  3. AdrienBoub
    Replies:
    0
    Views:
    624
  4. mike WRIGHT
    Replies:
    2
    Views:
    298
  5. Alvaro Vargas
    Replies:
    0
    Views:
    646
  6. anthr
    Replies:
    0
    Views:
    253
  7. mikedt
    Replies:
    5
    Views:
    1,406
  8. Kishor Bapat
    Replies:
    1
    Views:
    914
  9. Android News
    Replies:
    0
    Views:
    709

Share This Page

Loading...