Simon Armstrong

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 231 total)
  • Author
    Posts
  • in reply to: Ted2 not repainting window contents #3996

    Simon Armstrong
    Participant

    After a quick look at SDL2 I am guessing monkey needs to expose the SDL_WINDOWEVENT_EXPOSE event so that apps that don’t use continuous rendering can redraw their window when the OS needs it redrawn.

    in reply to: network/socket/tcp read/write class ? #3958

    Simon Armstrong
    Participant
    in reply to: Box2D #3950

    Simon Armstrong
    Participant

    Sweet abakobo! I was hoping someone was going to pick this up:)

    Will be back this weekend…

    in reply to: network/socket/tcp read/write class ? #3949

    Simon Armstrong
    Participant
    in reply to: Error building v1.05 (and v1.04) on Windows 7 #3697

    Simon Armstrong
    Participant

    So 1.04 still works correctly without this mod?

    in reply to: quirks, requests, questions and answers #3457

    Simon Armstrong
    Participant

    i asked in the interwebs and got this:

    http://stackoverflow.com/questions/18544881/sdl-2-0-retina-mac

    so maybe try changing modules/mojo/app/window.monkey2[335]

    Local sdlFlags:SDL_WindowFlags=SDL_WINDOW_OPENGL |
    SDL_WINDOW_ALLOW_HIGHDPI

    in reply to: FPS, Delta, FixedFPS, Timing, Animation Topic (almost done) #3444

    Simon Armstrong
    Participant

    Maybe Mark will chime in.

    I assumed mojo would force 60hz for full screen mode and that typical games would simply use native resolution fullscreen mode at 60hz.

    I see that for casual /windowed games the desktop frequency is something you can’t control (or even query atm) so yes, a fixed timing strategy is not for everyone (just most of us).

    in reply to: FPS, Delta, FixedFPS, Timing, Animation Topic (almost done) #3424

    Simon Armstrong
    Participant

    I would start with looking at the games included in the bananas folder of monkey2.

    None use a timer and all expect OnRender to be called at 60hz as Window.SwapInterval defaults to 1 which means App.RequestRender causes subsequent OnRender to be correctly frame synced.

    in reply to: sneak preview of new ui controls #3407

    Simon Armstrong
    Participant

    OK, I don’t understand. You have added a textalign property to labels?

    label.Gravity.X=-1  ‘ awesome

    in reply to: sneak preview of new ui controls #3405

    Simon Armstrong
    Participant

    None of the nonsensical ‘gravity”

    Gravity is a view property in most modern layout engines. From the mojox documentation:

    if a view’s layout is “fill”, the view is resized to completely fill its frame; if layout is “float”, the view retains its measured size but is positioned within its frame according to its View.Gravity.

    Typically alignment is a feature of a text paragraph left, center, right or justified and hence doesn’t really represent the same property in my mind.

    in reply to: FPS, Delta, FixedFPS, Timing, Animation Topic (almost done) #3402

    Simon Armstrong
    Participant

    IMHO a game should run at 60 Hz or 30 Hz (SwapInterval=1 or SwapInterval=2).

    If a game doesn’t run well it is typical to allow the user to downgrade visuals or resolution.

    A lot of the code above seems to be based on the premise that it is ok to skip frames because it can be fixed with some kind of algorithm. I’m pretty sure it can’t.

    in reply to: Experimental module manager now online! #3364

    Simon Armstrong
    Participant

    I am trying to upload new version of portmidi and I get this:

     

    Module upload failed: Module belongs to another user

    in reply to: Little mojox example – calculator #3324

    Simon Armstrong
    Participant

    I think you need to be testing for event type of EventType.KeyChar before using contents of event text.

    in reply to: Generics puzzle #3282

    Simon Armstrong
    Participant

    Your opinion is that the use case is pointless? The fact is inlining of method AdvancedUpdate by high volume iterators of AdvancedEntities is a worthy request.

    in reply to: Generics puzzle #3280

    Simon Armstrong
    Participant

    you won’t need casting if you apply good use of Polymorphy. and may be useful for generics as well.

    What does this even mean? If you are going to post in a negative manner at least try and do it constructively.

    Generics are like macro assembler and can generate very optimal code. They are not pointless.

Viewing 15 posts - 136 through 150 (of 231 total)