Click here to Skip to main content
16,021,294 members
Home / Discussions / Game Development
   

Game Development

 
RantRe: your publication in magazine ! Pin
Smithers-Jones8-Nov-11 4:34
Smithers-Jones8-Nov-11 4:34 
QuestionMultiplayer Poker Pin
Hanzaplast5-Nov-11 2:13
Hanzaplast5-Nov-11 2:13 
AnswerRe: Multiplayer Poker Pin
AspDotNetDev5-Nov-11 10:48
protectorAspDotNetDev5-Nov-11 10:48 
AnswerRe: Multiplayer Poker Pin
Alisaunder6-Jan-12 2:54
Alisaunder6-Jan-12 2:54 
Question'Self-aware' classes? Pin
Purge1t30-Oct-11 18:54
Purge1t30-Oct-11 18:54 
AnswerRe: 'Self-aware' classes? Pin
CDP180231-Oct-11 9:21
CDP180231-Oct-11 9:21 
GeneralRe: 'Self-aware' classes? Pin
Purge1t31-Oct-11 14:26
Purge1t31-Oct-11 14:26 
GeneralRe: 'Self-aware' classes? Pin
CDP180231-Oct-11 15:39
CDP180231-Oct-11 15:39 
Ahh, gravity. If only Newton had not invented it. Then everything would be much lighter Smile | :)

I see some room for optimization already.

1) It's a game. You don't have to be overly precise. For many problems even a physicist tends to cut some corners because after a certain point precision is lost due to rounding errors anyway. You could, for example, ignore every object if it is too far away and even precalculate this distance individually, depending on each object's mass.

2) You have large objects with a strong gravity field (planets, black holes and the like) which probably don't move around very much. You also have very small but mobile objects like ships. Why not sweep the smaller objects under the rug and calculate gravity only for the big chunks? The small objects should have little to no significance anyway.

3) If the big objects are static and don't move, you might as well precalculate a map of local gravity vectors with a resolution that fits your needs. Looking up a value in a map is far less an effort than calculating the value at every frame.
And from the clouds a mighty voice spoke:
"Smile and be happy, for it could come worse!"

And I smiled and was happy
And it came worse.



AnswerRe: 'Self-aware' classes? Pin
_Maxxx_31-Oct-11 18:33
professional_Maxxx_31-Oct-11 18:33 
Questionmodel, shade, looksRealistic OpenGL Pin
appollosputnik25-Oct-11 3:34
appollosputnik25-Oct-11 3:34 
AnswerRe: model, shade, looksRealistic OpenGL Pin
CDP180225-Oct-11 5:10
CDP180225-Oct-11 5:10 
QuestionHow to set pixelz using XNA and C# Pin
CDP180213-Oct-11 21:57
CDP180213-Oct-11 21:57 
AnswerRe: How to set pixelz using XNA and C# Pin
rj4524-Oct-11 11:54
rj4524-Oct-11 11:54 
GeneralRe: How to set pixelz using XNA and C# Pin
CDP180225-Oct-11 2:02
CDP180225-Oct-11 2:02 
Questioni need your help Pin
gif202014-Sep-11 1:39
gif202014-Sep-11 1:39 
AnswerRe: i need your help Pin
Pete O'Hanlon14-Sep-11 2:13
mvePete O'Hanlon14-Sep-11 2:13 
GeneralRe: i need your help Pin
gif202014-Sep-11 6:10
gif202014-Sep-11 6:10 
GeneralRe: i need your help Pin
Pete O'Hanlon14-Sep-11 6:47
mvePete O'Hanlon14-Sep-11 6:47 
GeneralRe: i need your help Pin
gif202014-Sep-11 8:33
gif202014-Sep-11 8:33 
AnswerRe: i need your help Pin
Mahdi Nejadsahebi25-Sep-11 1:01
Mahdi Nejadsahebi25-Sep-11 1:01 
AnswerRe: i need your help Pin
Paul Conrad25-Oct-11 6:01
professionalPaul Conrad25-Oct-11 6:01 
AnswerRe: i need your help Pin
Peter Hawke28-Dec-11 13:03
Peter Hawke28-Dec-11 13:03 
QuestionMy first released game Pin
Thomas.D Williams21-Jul-11 5:18
Thomas.D Williams21-Jul-11 5:18 
AnswerRe: My first released game Pin
Richard MacCutchan28-Jul-11 3:41
mveRichard MacCutchan28-Jul-11 3:41 
GeneralRe: My first released game Pin
Thomas.D Williams28-Jul-11 6:06
Thomas.D Williams28-Jul-11 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.