1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

Release Barony: Cursed Edition

Discussion in 'Software Releases' started by ptitSeb, Jan 24, 2017.

  1. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    Here is Barony: Cursed Edition.
    [​IMG]
    You will need the game data from the full game to play this PND. Either put the GoG version install (for the Linux or Windows version) inside appdata/barony, or put all the installation files inside the game subfolder.

    The game is designed for 960x600 minimul screen size, so I have setup a "virtual screen" of this size (using FBO). But 800x480 is also accessible (some dialog will be too big, like the joypad one).

    The keys are setup like for a fps game, so left nub is Joystick (it's not use by default, but it should be usable) and Right nub is Mouse. Click is on the shoulder buttons like always (swapped, left button on {R}, right button on {L}).

    It works fine on Gigahertz model.
    On CC you will need a Swapfile. Also, on CC, default graphic drivers doesn't like the 960x600 virtual screen (and you cannot pick object, FBO issue probably), so use 800x480 (there are still some little graphical glitches but it works).


    And here a video of an early build running on a Gigahertz Pandora.

    History log
    =========

    Build 03
    -------------

    • Fix a bug that could make the game to crash
    Build 02
    -------------

    • Optimized some AI stuff (unordered_map...)
    • Latest source code (2.0.7)
    • Optimized drawing of minimap
    Build 01
    -------------

    • Initial build
    • Converted FMOD audio to OpenAL
    • Many optimization to graphical engine
    • Some optimization in Logic engine
    • Use of FBO on glReadPixels
    • Some changes to defaults config to better suit the Pandora
     
    Last edited: Feb 24, 2018
  2. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    9,221
    Location:
    Somewhere off the coast of the EU
    I note this is also availble on steam (groan) or the humble store for a quid cheaper than GoG. Are those versions worth trying too?
     
  3. FBnil

    FBnil mine mine mine (pyra)

    Joined:
    Dec 14, 2012
    Messages:
    2,261
    Location:
    Yurp
    wow... that runs very smooth!
     
  4. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    They should work too. I think they are all the same (well, there are some steam achevement in the Steam version it seems, but that's just in the code, not in the data).
     
  5. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    Hi all :)

    @ptitSeb: thanks for porting Barony to the Pandora !

    It looks like a great game, but it's a bit slow (FPS < 10) on my Rebirth OC'ed @ 825 MHz with SGX driver 4.10, and all eye candy turned off (no smooth lights, no blood, etc...)

    Am I doing something wrong ?

    Cheers, Magic Sam
     
  6. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    I retried on my CC (o/c to 800MHz). The very beggining is at 15fps, but once you entre the dungeon (first time you go down in fact), yeah, it's around 10fps, a bit less (but I left all eyes candy on). I may habe a bit optimisations here and there left, but not much I'm afraid.
    Still it plays ok even at this low speed I think (action is not frantic, so low fps are ok).
    --- Double Post Merged, Jan 25, 2017, Original Post Date: Jan 25, 2017 ---
    Plus, I checked on Steam and GoG, and minimum system requirement is Intel i3 at 3.0GHz with integrated graphics. They probably have been a bit conservative on the minimum spec, but still, not bad it's playable on our little Pandora!
     
    Magic Sam and levi like this.
  7. Farox

    Farox Certified Guru

    Joined:
    Jan 8, 2009
    Messages:
    1,953
    Location:
    Italy
    Yes fps are a bit low on CC...but its ok for this kind of game. Plus there some items thats overlapping at 800*480 (like the text box and some items on the lower of screen), but thats a minor thing...i will be happy to play this on Pyra.

    Thanks again MegaSeb (ptitSeb is not really appropriate for your skills). ;) :cool:
     
    Magic Sam likes this.
  8. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    Hi all :)

    The problem is the game gets even slower when you reach the second level (2-3 FPS) ... :(

    N.B: this is no meant as a criticism of @ptitSeb 's port and abilities. I'm glad to be able to play such a demanding game on our tiny Pandora :)

    But right now, the game is just to slow to be enjoyable IMHO, that's it.

    Cheers, Magic Sam
     
  9. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    It really depend on the level built (all levels are random after all). But I'll try to play again and see if I can optimise a bit more.
     
    Magic Sam likes this.
  10. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    @ptitSeb: thanks for your time and efforts on this one, it's really appreciated :)

    I'd be glad to help with beta testing further optimized releases.

    EDIT: @ptitSeb: I OC'ed to 1 GHz and noticed some improvement (+ 1-2 FPS) . Would you say this game is CPU bound ?

    EDIT 2 : @ptitSeb: and thanks for pushing your changes upstream :)

    Cheers, Magic Sam
     
    Last edited: Jan 28, 2017
  11. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    Ok, here is a first beta:
    barony (*EDIT* link removed, grab build 02 on the repo).

    Not much in this beta for now.There is small optimisation, and the compilation options are more aggressinve. I don't expect visible changes, but, hey, that's a start.

    Unfortunatly, I think further optimisation will need more impacting changes, like putting some std::unordered_map to speed up look access, or remove custom single chained list with std::vector or some other stuff (not sure yet about that). Anyway, it will take time and result is not garantied...
     
    Last edited: Feb 3, 2018
    Magic Sam likes this.
  12. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    Hi all :)

    @ptitSeb: thanks for this new version ! Unfortunately, it crashes with the following message:
    Cheers, Magic Sam
    --- Double Post Merged, Jan 29, 2017, Original Post Date: Jan 29, 2017 ---
    Weird, libSDL2-2.0.so.0 is in your package. Would a symlink to *so.1 solve the issue ?
     
  13. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    Yeah probably. I have updated my SDL2 build to 2.0.5 and forgot to update the PND. I'll repackage it soon.
    --- Double Post Merged, Jan 29, 2017, Original Post Date: Jan 29, 2017 ---
    @Magic Sam : the PND is updated (same link). It should work now.
     
    Magic Sam likes this.
  14. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    @ptitSeb: thanks, it's working now :)

    I'm going to give it a try, and I'll report here ASAP.

    Cheers, Magic Sam
    --- Double Post Merged, Jan 29, 2017, Original Post Date: Jan 29, 2017 ---
    Hi again,

    @ptitSeb : I found this new version even slower than the previous one, but as you said before, levels are randomly generated so it's difficult to have consistent results between runs.

    Speaking of results, here is the output of "sudo perf top" on my Rebirth OC'ed @825 MHz (2nd level, ~2 FPS):
    Is there any relation between those "Entity" entries and issue #45 on github ?

    https://github.com/TurningWheel/Barony/issues/45

    Cheers, Magic Sam
     
  15. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    Yep there is.
    I agree with the ticket, that's why I wanted to put some std::unordered_map there (this things has hash index).
     
    Magic Sam likes this.
  16. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    @ptitSeb: I'm looking forward a new version featuring std::unordered_map :)

    How difficult / time consuming would it be to implement it ?

    EDIT: In order to undertand what it's about, I've read the documentation and compiled the example code on the Pandora :)

    http://en.cppreference.com/w/cpp/container/unordered_map

    Cheers, Magic Sam
     
    Last edited: Jan 29, 2017
  17. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    @Magic Sam : I don't know. I don't expect that to be too much work, but you never know.

    I haven't started (re)working on Barony yet, stil doing other stuff for now.
     
    Magic Sam likes this.
  18. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    Ok, I have updated the Barony beta build.

    It now feature all the code that is upstream now (so OpenAL and all optim that was in the 1st build, but with some fixed bugs), and now feature a unordered_map for entities (look in my github copy of Barony for details).
    It seems to work, and it seems faster to me.
    I also rebuilt OpenAL with latest sources (there seems to be a bit more NEON code).

    I'll probably try to change the List (that are simple single-chained lists) to std::vector also, see if it improve things too.

    Feed back on this new build is welcome.
     
    Magic Sam likes this.
  19. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,028
    Location:
    Ankh-Morpork
    Hi all !

    @ptitSeb : thank you very much for this new release :)

    I gave it a quick go and noticed only minimal improvement (if any), speed-wise.

    The game is still ~5-7 FPS, even with OC @ 1 GHz.

    But thanks for your time and efforts on this one anyway :)

    Cheers, Magic Sam
     
  20. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,983
    Location:
    France, near Lyon
    Mmmm, I'm pretty sure I have faster fps. Only at the load of the level it's a bit choppy, but as I go out of the room, fps are good enough for play (but I think the limiting factor is GL speed now).
     

Share This Page

Loading...