TPT Snapshots / Betas

  • jacob1
    7th Dec 2018 Developer 0 Permalink
    @Drizziie (View Post)
    That's odd. I haven't intentionally done anything. You get 5-10 fps on an empty screen on mac in the release version? That's awful >_>, did nobody ever report this. None of the developers have a mac which means it's really difficult to support it properly (this is also why the updater doesn't work on mac in recent versions, but before release I might put a message in game asking for mac testers to help fix this)

    I do have one theory though, I did upgrade to SDL2. SDL is the library we used to display to the screen and handle mouse / keyboard input. SDL1.2 is years old and we were still using it. SDL2 probably has better support for recent versions of mac.

    Anyway, which version of mac do you have? (the version number, should be 10.something I think but I don't really follow mac news). Also, what is your screen resolution and do you use double scale mode? (or even a higher scale mode like 3 or 4). Macs usually have high resolution screens, and handling that in apps requires special care in order to not make the window just appear super small. I haven't done anything, but maybe SDL2 handles high dpi screens better or something.
  • DanielGalrito
    7th Dec 2018 Member 0 Permalink

    In snapshot 149 (maybe even before), the keyboard keys to increase and decrease brush size stopped working, is that related to the SDL library?

    All other keys seem to be working.

     

    Seems to only happen from 136 forward, when the update to SDL2 happened.

    Edited once by DanielGalrito. Last: 7th Dec 2018
  • jacob1
    7th Dec 2018 Developer 0 Permalink
    @DanielGalrito (View Post)
    Yes, it's probably the new sdl library. Those keys work for me though ... [ and ] ? Which keyboard layout are you using? Maybe it depends on that.
  • Drizziie
    7th Dec 2018 Member 0 Permalink

    @jacob1 (View Post)

     

    I'm running 10.14.1 Screen resolution is 2880 x 1800. Chaning between regular and double scale doesn't make a siginificant difference. I normally use 2. On the snapshot version double scale runs fine. 

     

    FPS on the release version is 5-10 on a blank screen. Chosing the "Open In Low Resolution" option from Finder doesn't affect FPS at all.  

     

    Running unlimted FPS on the snapshot version, the FPS fluctuates a lot but it reaches up to 600 on a blank screen.

     

    Also, is the snapshot supossed to generate a .pref file? Mine doesn't nor can I save any saves to my disk. That might be intended though, not sure. 

     

  • jacob1
    7th Dec 2018 Developer 1 Permalink
    @DanielGalrito (View Post)
    Anyway it still works for me, so I might need more info to try fixing that.

    @Drizziie (View Post)
    Very strange ... it would be nice to know how I fixed the fps problem, but good that it was accidentally fixed by the sdl2 upgrade.

    .pref files and Saves are saved into some common directory. You can click "open data folder" in settings to find it. It's been this way for a few years now. This only happens on mac, on other platforms the .pref and Saves are located directly next to the executable.
  • Drizziie
    8th Dec 2018 Member 0 Permalink

    It is weird, but at least it's working great now. 

     

    About the .pref... What you descibed works on the release version, but not on the snapshot. When I click "open data folder", it opens Finder to the root directory. It's like the app isn't actually creating the saves file or .pref at all.

     

    The relsease version vreates the "The Powder Toy" folder in the Application Support folder, but the snapshot does not. Even when the .pref file exists created by the release, the snapshot version isn't reading it. Weird.

    Edited once by Drizziie. Last: 8th Dec 2018
  • jacob1
    8th Dec 2018 Developer 0 Permalink
    @Drizziie (View Post)
    Does it appear to be using the Application Support folder anyway? Maybe "Open in Data Folder" is just broken, but it's still storing preferences and saves there.

    That button executes this command on macs: open "/path/to/folder/"
    Edited once by jacob1. Last: 8th Dec 2018
  • DanielGalrito
    8th Dec 2018 Member 0 Permalink

    Portugal QWERTY layout, the keys that used to change the brush size are 2 ones after P (*+ and `´)

    Edited once by DanielGalrito. Last: 8th Dec 2018
  • Drizziie
    8th Dec 2018 Member 0 Permalink

    @jacob1 (View Post)

     

    Clicking "Open in Data Folder" opens the same folder as does the command " open / ". So my guess is that it's not using the Application Support folder. 

     

    I've checked both Applications Support folders and can't find any sign of the folder that should be generated. 

  • jacob1
    8th Dec 2018 Developer 1 Permalink
    @Drizziie (View Post)
    OH, I know what the problem is. Back in sdl1.2, there was a file that sdl needed to work properly. We later put in some custom stuff in there, like changing the directory to application support and handling double clicking .cps/.stm files.

    With sdl2 it said that file wasn't needed, so I'm not using it. But now our custom stuff doesn't run.

    Sometime later I'll either add parts of the file back or just do the chdir in the c++ code.

    @DanielGalrito (View Post)
    I think I removed those shortcuts, try using [ and ] instead, which are the standard shortcuts. Are those hard to press on that layout?