Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 61

Thread: Multiplexity: MechaChess

  1. #11

    Multiplexity: MechaChess

    Great stuff, what does the diagonal yellow line mean?
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  2. #12

    Multiplexity: MechaChess

    Quote Originally Posted by savage
    Great stuff, what does the diagonal yellow line mean?
    Valid moves. Didn't you ever play computerized chess before? The "illuminated" always mean that those are your valid moves.

  3. #13

    Multiplexity: MechaChess

    Right. If you click on a piece, the moves you can do, are allowed.

    By the way, 3069 LOC so far.

  4. #14

    Multiplexity: MechaChess

    The whole chess logic is ready to go?

    Bah! Don't tell me again you are not that far as I am
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  5. #15

    Multiplexity: MechaChess

    To be honest, he had this one "prepared before", as they say in cooking shows ;-)

    But yes, he's really a discovery. I think I'm gonna kidnap him and tie him to a workstation in my basement.

  6. #16

    Multiplexity: MechaChess

    Again, you're giving away my secrets.

    Alright, I gotta concede: The chess code is from a chess project I could not finish due to problems in the network classes.

    @huehnerschaender: And I'm definitely way behind your project, you just gotta take a look at the graphic: I have no idea how to get the antialiasing and particle effects done. I'm not really the one to do 3D-things, but there's noone else to do it for now.

  7. #17

    Multiplexity: MechaChess

    Can you post a simple SDL code example that would recreate the slowness you described in Dirk's thread?

    Maybe some of us can help you speed things up.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  8. #18

    Multiplexity: MechaChess

    Seems like everything was nothing but an optical illusion. FPS counter says 60 FPS all the time.

  9. #19

    Multiplexity: MechaChess

    Correction: It was not an optical illusion.

    In fact the DeltaTime (the time between two rendering steps) is 7 ms in window mode and 17 ms in fullscreen mode. I have no idea why, but that's not the problem, as it still looks fluent. The real problem about it is that NewtonUpdate seems to be slower. I mean the objects fall slower.

    Code:
    NewtonUpdate&#40;FNewtonWorld, DeltaTime&#41;;
    DeltaTime is the time since the last call of NewtonUpdate. Is there any possible reason for this strange behaviour?

  10. #20

    Multiplexity: MechaChess

    After creating Newton you should set Newtons minimum framerate (which is set to 60 by default). In my case I want Newton to update 100 frames a second. If the game runs too slow, Newton will interpolate the Newton steps to the current framerate.

    So in my case (100) I call:
    Code:
    NewtonSetMinimumFrameRate&#40;NewtonWorld,100&#41;;
    My DeltaTime is calculated between 0 and 1, so I update Newton by calling:

    Code:
    NewtonUpdate&#40;NewtonWorld,&#40;1/100&#41;*time_&#41;;
    where time_ is my Deltatime...

    As you can see, I tell Newton to update 100 frames per second, no matter what framerate I have (because I multiply by my delta)...

    What you do is telling Newton it should update as fast as the current framerate is, which of course differs from PC to PC... So this is no good idea.

    Try my way and tell me if it works better...

    Greetings,
    Dirk
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

Page 2 of 7 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •