FPS capped at 15 (Mac)

  • boxmein
    16th Jul 2016 Former Staff 0 Permalink
    Oh, by the way - check the "Open in Low Resolution" checkbox in "Get Info" when you're playing. Otherwise your FPS will be lower - high DPI screens like your 5k Retina make the OS do some weird resize dancing to work better that's really slow.
  • Simon
    16th Jul 2016 Administrator 0 Permalink
    @jacob1 (View Post)
    Looks like you're not linking SDL properly, I'm guessing you're linking with -lSDL rather than -framework SDL
  • jacob1
    16th Jul 2016 Developer 0 Permalink
    @Simon (View Post)
    I'm not using the SDL framework with the new cross compiler, I was trying to link SDL statically. I've done it before I thought ... apparently not.

    Edit: I remember how I did SDL statically now, compiling a fixed mac version (I hope) now. Also, I can definitely see boxmein's thing being a problem. Although I don't think it would cause *that* much lag.

    Edit2: I did fix the snapshots now: http://starcatcher.us/TPT/ , unsure if it will fix your issue but you never know.
    Edited 3 times by jacob1. Last: 16th Jul 2016
  • Brandonator365
    5th Mar 2017 Member 0 Permalink

    Man, I'm sorry for necroing this, but this problem is still happening, even after doing all the steps you have told me. I even tried on other Macs, newer and older, 2k to 5k, and my FPS never goes higher than 20.

     

    EDIT : Snapshots will load now, but are still capped at 15 FPS.

    Edited once by Brandonator365. Last: 5th Mar 2017
  • jacob1
    5th Mar 2017 Developer 0 Permalink
    I don't know what to tell you then. If the snapshot's don't work, and boxmein's advice doesn't work, I have no other ideas. You have been the only one to report this so far. Maybe someone else that has a mac will find a solution.

    At least you were able to help fix the snapshots. If that hadn't been fixed the next official version would have also been broken.

    One last thing, maybe you can try my mod? The code is very different from normal TPT, so maybe it won't have the same issue: https://starcatcher.us/TPT/mod/Jacob1's%20Mod.dmg
  • Brandonator365
    6th Mar 2017 Member 0 Permalink

    Well, the mod still has the same problem. I'm going to try everything I can to fix this. It's worth noting that Powder Game uses 117 percent of my CPU. I'll post again if I find a solution.

     

    HAPPY EDIT : Wow. I did it. I fixed it. And I fixed it by doing one of the weirdest things possible.

     

    I have a video of what I did, and I might post it here later.

     

    Here's a rundown.

     

    I opened my Application Support file in my library and found a few things. I found an autorun.lua that attempted to set my FPS cap to a massive number. I deleted it, and the problem persisted. So, I did something that the app even explicitly asked me not to do. I went into the powder.pref and saw a little box at the top that was named "History" and it contained the autorun.lua files. It also had something that set my max FPS to 2. I don't think this is what caused my issue, but it's possible since I removed the commands and replaced them with setting my max FPS to 60, then 120, then 240. Afterward, I went down into my user settings and saw that my average FPS was 16. I changed it to 60, started my game, and, while the resolution was extremely bad, (low-resolution mode) I was getting 60 FPS! I disabled low-resolution mode, and, poof! 60 Frames per second. Strange. I don't know how changing something in the console history had such a big effect on my game, but I'm so happy that I stuck with trying to fix it and persevered until I did. I wonder why I made that autorun.lua to begin with, though.

     

    Thank all of you moderators and admins for your support!

     

    EDIT 2 : In addition to what I did above, I also disabled Large Screen mode, which helped A LOT. Fullscreen will work for my Mac, I suppose. There might be some problem with the scaling in Large Screen mode, too, but whatever I did definitely worked.

    Edited 2 times by Brandonator365. Last: 6th Mar 2017
  • QuanTech
    6th Mar 2017 Member 0 Permalink

    @Brandonator365 (View Post)

     Wow! So why is my sugar-rocket not launching to Mars? Could u fix plz?? :D

  • jacob1
    6th Mar 2017 Developer 0 Permalink
    @Brandonator365 (View Post)
    All the fps cap stuff you saw is probably from a few months ago when we suggested you run the tpt.setfpscap commands.

    Honestly I bet the thing that did it was double scale mode. That is a little laggier but ... it shouldn't be *that* laggy. I use double scale mode and still get 60fps. Maybe some macs do weird things and it is something I should look into sometime.