Jump to content


Member Since 09 Jun 2008
Offline Last Active May 22 2015 05:33 PM

Topics I've Started

Best approach for creating a cross-platform mobile SDK

23 February 2014 - 01:05 AM



I'm planning the development of a cross-platform SDK for games, that will also have a Unity plugin later on(currently supporting Android and iOS).
Currently i'm thinking of the best option for doing developing an SDK that will be cross-platform.
From research i've done, looking over many mobile SDKs for games, it seems that most of them actually have a separate implementation per supported platform.
At first this seems counter-intuitive and not the right way to go (who wants to maintain 2 or more code bases that do the same thing?)
Obviously it isn't a "clear cut" as many companies still choose to implement per platform.
I'd like to know what are the pros and cons for each approach (one implementation per platform vs. a "single" shared code base), and what questions should i be asking myself when deciding which option to choose.
Any info or advice is appreciated.

How to perform client side smoothing

19 October 2013 - 11:45 AM

We're developing an infrastructure to support multiplayer games for our game engine.

In simple terms, each client (player) engine sends some pieces of data regarding the relevant game objects at a given time interval.

On the receiving end, we step the incoming data to current time (to compensate for latency), followed by a smoothing step (which is the subject of this question).

I was wondering how smoothing should be performed ?

Currently the algorithm is similar to this:

  • Receive incoming state for an object (position, velocity, acceleration, rotation, custom data like visual properties, etc).

  • Calculate a diff between local object position and the position we have after previous prediction steps.

  • If diff doesn't exceed some threshold value, start a smoothing step:

    1. Mark the object's CURRENT POSITION and the TARGET POSITION.
    2. Linear interpolate between these values for 0.3 seconds.

I wonder if this scheme is any good, or if there is any other common implementation or algorithm that should be used?

(For example - should i only smooth out the position? or other values, such as speed, etc)

any help will be appreciated.

c# (or c++) : struct vs class

29 September 2008 - 02:34 AM

Hello all! What are the differences (or better off - advantages / disadvantages) of using struct instead of creating a class? Lets say i have a GameObject entity, and for the sake of this discussion, this entity doesn't have any methods, only fields that it stores. 1. Is struct better off being used than class? 2. Can i inherit from a struct like i do with classes? 3. Performance wise what are the benefits? Lior.

Pool game - Which object should i use to store objects? (C#)

22 August 2008 - 11:19 PM

Hello All! I'm currently working on a pool game using the XNA framework. I have a BallManager object that handles all the balls on the table. Each ball is an object, and i'd like the BallManager to keep some sort of list to handle all these objects. My concerns are : a. This list should be dynamic, meaning that balls that are no longer available will be removed from the list. b. I'd like to keep some sort of indices to each position in the list, so i could perform something like: checkCollision(i, j) where (i,j) are indices in my ball list. Which type can i use to perform this? or is there any easier way u can think of ? Thanks, Lior.

DirectX control panel - debug/retail selection disabled

22 August 2008 - 09:54 AM

Hi guys! I want to switch to DEBUG version of D3D 9, however this selection is disabled under the control panel. what could cause this? it worked earlier this week... Is there any way to solve this? (without having to re-install DirectX SDK) Thanks, Lior Tal.