PIP Performance

Discussion in 'Planetary Annihilation General Discussion' started by Spriggan43, September 11, 2014.

  1. Spriggan43

    Spriggan43 Active Member

    Messages:
    110
    Likes Received:
    68
    Hi Guys,

    How much of a performance hit is expected with PIP enabled? Is there any setting to play with to modify PIP quality?

    Thanks
  2. websterx01

    websterx01 Post Master General

    Messages:
    1,682
    Likes Received:
    1,063
    It will drop your fps by approximately 50%, as you are technically rendering the game twice.

    As far as I know, there is not PiP quality modifier.
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    It was talked about before and is somewhere on the list of things that at least somebody at Uber *wants* to implement. Though I'd guess currently more basic features have higher priority.
  4. igncom1

    igncom1 Post Master General

    Messages:
    7,961
    Likes Received:
    3,132
    Id love if the pip was like supcoms wire net thing, so the game only has to render things of strategic importance.
  5. warrenkc

    warrenkc Active Member

    Messages:
    542
    Likes Received:
    191
    I think it reduces the framerate perhaps 5-10. I used to never use it but it is more efficient now and love it. Especially for linking teleporters.
    planktum and cdrkf like this.
  6. bengeocth

    bengeocth Post Master General

    Messages:
    1,285
    Likes Received:
    657
    thought it said rip performance
  7. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    Right now, it adds about 30-40% cpu overhead to frame time, since it doubles draw count (approximately). I have some zany ideas to cut that overhead significantly, though. I'll get to it soon with any luck.
  8. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    Oh, and the gpu cost is minimal on all but the lowest end gpus. It's mostly cpu cost.
    cdrkf, Remy561, planktum and 2 others like this.
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Could this make better use of multithreading maybe?
    squishypon3 likes this.
  10. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    Sadly, no. OpenGL doesn't support advanced features like deferred contexts (like d3d on Xbox one does), so draws and state can only be submitted on the primary thread.
    cola_colin and cdrkf like this.
  11. felipec

    felipec Active Member

    Messages:
    465
    Likes Received:
    190
    PIP is one of the most useful features in the game right now! Are there plans to allow more then 1 pip after the optimization is done? In addition to this question, can we expect bigger planet size limit? Thanx =)
  12. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    There's a lot of "we'll have to see how it goes" in any answers to those questions. But potentially yes to all of those.
    felipec, cdrkf and Remy561 like this.
  13. planktum

    planktum Post Master General

    Messages:
    1,060
    Likes Received:
    510
    I'm am reluctant to ask this question, because I don't want to upset anyone, especially varrak who is doing an awesome job by the way!, but I'm going to ask it anyway...

    @varrak Would you guys choose to use OpenGL again? I know it has allowed you to make the game cross-platform, but in all honesty, is the Linux user base for this game big enough to warrant the inconveniences it has caused?
  14. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    It depends. D3D is a better API, but then it limits you to Windows only. So to be realistic, I'd say yes, we'd go OpenGL (or stay that way). I've actually grown to quite like it as an API (or at least, I don't loathe it nearly as much as I used to).

    That said, if I ever get some downtime, I'd love to create a Direct3D 12 rasterizer on our engine. It's architected in such a way that it would be possible to do without rewriting the high level logic. It would be about a month's work, I think. I'm not sure the maintenance cost of keeping two APIs current (and optimal) would be worth it though.
  15. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    And that question doesn't upset me at all. I was a seasoned Direct3D developer before I came onboard at Uber. I still prefer it as an API. It would be pretty cool to have a D3D and OpenGL version of the game and compare them side-by-side. One day... one day...
    dukyduke, FSN1977, cdrkf and 3 others like this.
  16. cdrkf

    cdrkf Post Master General

    Messages:
    5,721
    Likes Received:
    4,793
    One thing I was wondering... (and probably one of those 'if we can' type answers), any possibility that the PIP window could be floated as a second full window for those of us with dual screens?

    I'm assuming that wouldn't change the cpu overhead compared to rendering the small PIP (although it would increase GPU load, however I think many of us have capacity in this regard)... It would be a really nice feature and on the face of it looks like something that should be possible with the current system (although I could be way off)?
  17. touvez

    touvez New Member

    Messages:
    3
    Likes Received:
    1
    Hello,

    I agree with the one above me, i think it should be great to have the same function as supcom had.....hability to split the screen in 2 and keep the minimap.....it was pretty good for those who do not have dual screen (people with dual screen was able to split both screen as well) maybe great when you need to check multiple planets for multiple invasion......

    I dont know if it can be done but as supcom was able to do it i don t see why we can t have that on PA...

    PS: sorry for my english!
  18. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    hmmmmmmm I bet you can't do it! :D


    I bet you your favourite beer!
    Remy561 and varrak like this.
  19. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    cola_colin made an n-screen mod back in beta. You had to put in some work to configure it for your own display setup, but it worked pretty well. He stopped updating it because there were some pip bugs that are most likely gone now and game performance was not in a place where you could really make use of it. As a proof of concept though, it showed that multi-monitor is indeed possible.

Share This Page