Increase resolution

  • boxmein
    27th Mar 2012 Former Staff 0 Permalink
    @mirek123 (View Post)
    PhysX is for object-based physics.
  • jacksonmj
    27th Mar 2012 Developer 0 Permalink
    Restrictions on resolution that I'm aware of:

    Width and height are stored in single bytes in the save format, so stamping and saving won't work properly if the width or height are made any bigger than 1020 (unless you also change the save format). This applies to both the OPS and PSv save formats.

    If the screen size is increased a lot, the game may crash due to too much recursion. Probably in grav_mask_r (a function to detect areas enclosed by gravity wall), or in one of the flood fill functions in powder.c.
  • tugrul_512bit
    7th Feb 2014 Member 0 Permalink

    @jacksonmj (View Post)

     

    Im changing TPTpp's config.h file as XRES 1224 and YRES 768 and this makes memory leaks and crashes TPT. What should I do? I already made the AirUpdate gpu accelerated and it can withstand much more work. Maybe there are other configurations that I must increase along with resolutions?

     

     

    Edit: just figured it was not multiplying in the #define. Just puts it as 612 * 2 anywhere it belongs :P so it 

    Solved it with replacing 612*2 with 1224

     

    AirSolve:

    For 1024 and 768 and CELL=2, CPU version takes 30ms and GPU version takes 8 ms (including buffer copies)

     

    Maybe some double-nested for loops in particle_simulator_i can gain performance?

    Edited 3 times by tugrul_512bit. Last: 7th Feb 2014
  • genrelguner
    24th Jul 2020 Member 0 Permalink

    @mirek123 (View Post)

     I know your post is 8 years old. But using PhysX is a bad idea because it is a propietary engine for use on Nvidia Graphics cards only. Better off using CPU only for cross compatibility.