Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Port the vectorwar example application to Linux using libSDL2, based on PR 52 #57

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Shugyousha
Copy link
Contributor

I have tested that the vectorwar application compiles and runs both on Linux and Windows (10).

I am not too familiar with Windows development so I only managed to compile this by installing the SDL2 vcpkg package and adding a environment variable to CMake so it can find the library. The build process would have to be streamlined on Windows for sure (the vectorwar binaries are also created in different locations when built on Windows vs Linux. Not sure that is expected behaviour due to Visual Studio or not).

There are still quite a few bugs and unimplemented things (see below). If you are not opposed to porting vectorwar using libSDL2 I can continue to work on those.

  • the ggpo network performance graph application has not been ported to libSDL2 yet
  • PID printing in Windows window (ha!) title bar is broken
  • disconnect timeout bar rendering is wrong
  • currently I don't render an inner box in the vectorwar window
  • currently I don't adjust window positions (this will most likely not work on Wayland at least anyways)
  • to draw the text I currently use a font atlas (to avoid more library dependencies). This font atlas is defined in a byte array in font.h (mostly to avoid having to get CMake to copy a binary file to a place where it can be found on all platforms)

Would you be willing to get the vectorwar application ported to more platforms using libSDL2? If so, I can invest more time into this and make a proper PR out of it.

Bo Qin and others added 13 commits October 26, 2019 19:24
We get rid of platform_linux.{h,cpp}.
This seems to be defined in winsock2.h already.
This allows us to use the CLOCK_MONOTONIC flag. This option avoids
issues should the system clock change while we are asking for the time
in our program.
Instead we just copy them there for now.
In theory this should make vectorwar run on every platform that libSDL2
supports. I have only tested Linux and Windows however.
@MIfeanyi
Copy link

MIfeanyi commented Aug 6, 2020

Looks good.

@WilliamTambellini
Copy link

@Shugyousha any plan to rebase ?

@Shugyousha
Copy link
Contributor Author

@Shugyousha any plan to rebase ?

As far as I am aware neither PR52 nor the one that PR52 is based on (PR37) have been changed in the meantime. I don't think any rebasing should be necessary.

@ValorZardK
Copy link

Hey, since this repo seems to be basically abandonded, is anyone interested in just taking this branch and making it the main ggpo repo instead?

@nykwil
Copy link
Contributor

nykwil commented Mar 24, 2021 via email

@Shugyousha Shugyousha mentioned this pull request Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants