Skip to main content
Participant
May 2, 2010
Question

Problem synchronizing RSOs in Whiteboard Application

  • May 2, 2010
  • 2 replies
  • 482 views

Hi,

I have prepared a CUSTOM WHITEBOARD. This whiteboard is shared by two clients. They BOTH can draw on the board using TOOLS in the WHITEBOARD PANEL SET of the application. When someone DRAWS I do following actions:

1: Capture the WHITEBOARD FULL AREA/CANVAS using jpgEncoder().

2: Then I send this BYTEARRAY to the FMS server as Remote Shared Object.

3: The client then draws that RSO onto the WHITEBOARD.

Pretty simple though.

BUT, I am having synchronization ISSUES. The issues are as follows:

Issue 1: Image updates with no synchronization and seems to be zig-zag/random  when they both draw at a normal speed.

Can anybody tell me WHAT thing I MAYBE missing.

Thanks

    This topic has been closed for replies.

    2 replies

    May 4, 2010

    How fast are you trying to update the data in the shared object? Unless the area of the whiteboard is very small, it seems to me that there's going to be a lot of processing time in capturing a bitmap data, encoding to jpeg, extracting a bytearray, and sending it over the wire. If you're trying to send complete bytearrays that represent a jpg image each time someone draws to the whiteboard, I don't think you'll ever be able to count on good performance.

    Why not just send the data about each shape drawn to the whiteboard, and let each client draw the vector shapes? That way, instead of sending large byte arrays, you're just sending tiny bits of data describing the individual vector shapes.

    May 4, 2010

    Hi,

    Can you share some portion of your code as to how you are synchronising the Shared Object. It will help to nail the issue better.

    You can send it as a personal message to me if you do not want to post it publicly

    Thanks,

    Abhishek