Release Barony: Blessed Addition

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

  1. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    Both, there are some common code (the one I want to optimize) and some specific code (that I don't plan to touch for now).
     
  2. kuru

    kuru Laptop und Trachtenjanker

    Joined:
    Jan 13, 2009
    Messages:
    1,755
    Location:
    the mockracy
  3. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,206
    Location:
    Innsmouth, MA
    Hi all :)

    @kuru : thanks for the heads-up !

    @ptitSeb : according to TurningWheel's GitHub, version 2.0.7 is out :

    https://github.com/TurningWheel/Barony

    Could you please give this new version a go ? Is there a remote possibility GCC 7.2 + a newer GL4ES library could produce a faster gameplay ?

    And last but not least, did you try to port Barony to the Pyra yet ? ;)

    Cheers, Magic Sam
     
  4. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    Yeah, I've seen the 2.0.7. I'll update.

    About Pyra, remember that there is no 3D Driver yet...
     
    Magic Sam likes this.
  5. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    3,022
    Doesn't software rendering work really well on Pyra though? I remember that video of reicast working without 3D drivers.
     
  6. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    That video was *with* 3D Driver, on an (much) older OS revision (and on a dev board, not on the Pyra itselft with TILER to handle the rotation of the Image).
     
  7. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    3,022
    Oh! I wasn't aware that was with acceleration.
     
  8. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    The new build of Barony is on the Repo. I removed link to the beta version, as it has been superseded by this new release.

    Please note that you need data from the full 2.0.7 game. If updating from a previous version and expect the use the autoextracter of GoG file, I suggest your remove your current appdata/barony/game folder (I'm not sure the update does work).

    You can use GLES2 backend of gl4es by creating a file name ".es" in appdata/barony that contain "2" (without the quotes), but Barony doesn't use shaders, so that will not change much the rendering or the speed.

    Build 02
    -------------

    • Optimized some AI stuff (unordered_map...)
    • Latest source code (2.0.7)
    • Optimized drawing of minimap
     
    xnopasaranx and Magic Sam like this.
  9. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,206
    Location:
    Innsmouth, MA
    Hi all,

    @ptitSeb : thank you for this new version, I'm going to test it right away.

    Cheers, Magic Sam
    --- Double Post Merged, Feb 4, 2018, Original Post Date: Feb 4, 2018 ---
    Hi again,

    @ptitSeb : it works like a charm !

    Cheers, Magic Sam
     
  10. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,206
    Location:
    Innsmouth, MA
    Hi all,

    @ptitSeb : Barony just crashed on me (level 4). The game was pretty slow at that moment (~6 FPS):
    I'll try to upload my saved game ASAP.

    Cheers, Magic Sam
    --- Double Post Merged, Feb 17, 2018, Original Post Date: Feb 17, 2018 ---
    @ptitSeb : more information from appdata/barony/game/log.txt:
    Cheers, Magic Sam
    --- Double Post Merged, Feb 17, 2018 ---
    @ptitSeb : and I'm attaching two recent saved games to this post, I hope it'll help you reproduce this issue.

    Cheers, Magic Sam
     

    Attached Files:

  11. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    Unfortunatly, that stack dump is useless (contains only "segfault_sigaction(int, siginfo*, void*)", so the segfault handler...).

    I'll try later to use your save to reproduce the crash...
     
    Magic Sam likes this.
  12. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,206
    Location:
    Innsmouth, MA
    Hi all,

    @ptitSeb : I just gave my saved game a try, and it crashed in the exact same way (on my Rebirth unit OC'ed @ 825 MHz)...

    All I had to do is exit the first room and go right, towards the camp fire...

    Cheers, Magic Sam
     
  13. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    Ok, I reproduce it too. The backtrace is corrupted, that will be tricky :(
     
    Magic Sam likes this.
  14. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,206
    Location:
    Innsmouth, MA
    @ptitSeb : sorry about the corrupted backtrace :( Is there anything I can do to help ?

    Cheers, Magic Sam
     
  15. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    No, it's not your fault, it's the way it crashes (in the middle of the heavily asm-optimized memcpy). I'm building gdb 8.1 now, to see if it can help (I don't think it will, but I wanted to upgrade anyway).
     
    _jr_ likes this.
  16. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    I haven't given up on finding the issue here, but for now, I'm still with no lead...

    I know it's something happening in the GLES driver. I get the same info (it's a memcpy inside GLES driver, nothing more) where I use GLES1 or GLES2 backend from gl4es. I don't even know if it's a drawing command or something else. Also, running with valgrind didn't gave much info (but it did show me a place on the OpenAL code where I do a memcpy and should have used a memmove).

    I'll try reproducing with some other SGX driver, maybe that will show something. I also have to try on something else than the Pandora (unless it's specific code, but then, I can also remove those graphic optim and check if it reproduce).
    Still some work to fix that bug...
    --- Double Post Merged, Feb 24, 2018, Original Post Date: Feb 24, 2018 ---
    Ah, using SGX driver 4.03.02 and GLES1, I got a real stacktrace using Valgrind!
    Code:
    ==1033== Invalid read of size 4
    ==1033==    at 0x4830DE0: memcpy (vg_replace_strmem.c:1019)
    ==1033==    by 0x5A29AD7: CopyVArrayDataDeindex (drawvarray.c:611)
    ==1033==    by 0x5A2A83B: DrawBatchOnVBuffer (drawvarray.c:1276)
    ==1033==    by 0x5A2C4E7: glDrawElements (drawvarray.c:2554)
    ==1033==    by 0x4A3131B: glDrawElements (gl.c:1129)
    ==1033==    by 0x4A32EFF: glDrawArrays (gl.c:1234)
    ==1033==    by 0x4A31D3B: glDrawArrays (gl.c:1172)
    ==1033==    by 0xF018F: buff_flush() (opengl.cpp:626)
    ==1033==    by 0xF1BB3: buff_leave (opengl.cpp:634)
    ==1033==    by 0xF1BB3: glDrawWorld(view_t*, int) [clone .part.9] (opengl.cpp:1227)
    ==1033==    by 0x1D467: glDrawWorld (opengl.cpp:663)
    ==1033==    by 0x1D467: main (game.cpp:2734)
    
    At least something a bit more precise to work on... (and yes, it's specific Pandora optimization code I wrote, to batch stuff :( )
    --- Double Post Merged, Feb 24, 2018 ---
    Ok, found the bug (stupid mistake of course). New version updated to the repo.

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

    • Fix a bug that could make the game to crash
     
    Magic Sam, levi and Linux-SWAT like this.
  17. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    Update release on the repo. Using new source from the Blessed Edition.

    If you are updating from Cursed Edition, you will probably need to update the data, the Blessed executable will not run with Cursed data. If you want to use autoexaction, simply delete appdata/barony/game folder and copy the latest gog installer (windows or linux)

    Build 04
    -------------

    • Updated to Blessed edition (v3.2.2)
    • Updated libs
     
    Magic Sam and Farox like this.
  18. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    2,206
    Location:
    Innsmouth, MA
    Hi all !

    @ptitSeb : thanks for updating your package, this is as always really appreciated :)

    Some quick impressions:

    - the game still needs a swap file no matter which Pandora you have
    - loading models takes a long time (several minutes), CPU usage is at 100%
    - default keymap is "weird" to say the least: move forward and lookup are mapped on the same key for example...
    - performance in-game is rather good on my Rebirth OC'ed @ 1GHz
    - appdata/barony/barony.txt could use an update ;)

    Cheers, Magic Sam
     
  19. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    Well, no miracle here, each version has more and more data...
    Ah yes, that, I'll update the PND with a version where Model Cache is enabled (so loading is much faster after the 1st launch)...
    Mmmm, I had changed that in the code, did I forgot something, I'll recheck
    Yep, it's pretty good performance-wize, and it's a current game :D
    Ah yes, forgot that one (and the dialog box when no data is present).
     
  20. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,359
    Location:
    France, near Lyon
    So, the new verison is on the repo.

    Build 05
    -------------

    • Fixed default keymap
    • Activated Model Cache (delete appdata/barony/game/models.cache to regenerate)
    • Updated help text about data
     
    Magic Sam and TeDaDeS like this.

Share This Page

Loading...