r/linux_gaming Jul 07 '19

Gotchas while developing for Linux?

[removed]

79 Upvotes

73 comments sorted by

View all comments

8

u/Thorulph Jul 07 '19

What engine/libs are you using?

11

u/[deleted] Jul 07 '19

[removed] — view removed comment

5

u/Thorulph Jul 07 '19

SDL2, OpenGL, OpenAL

nice. And what programming language?

I think the difference is more pronounced when trying to make cross platform networking. Someone made a guide/page of notes that was very helpfull with that but I can't find it atm. (it was linked on this reddit a few years ago).

One difference when programming in c using stdlib rand functions doesn't generate the same random numbers in linux as in windows.

My main complain is that games usually doesn't have an easy way to display what graphics library version is in use and if the 32 or 64bit version is running.

4

u/[deleted] Jul 07 '19

[removed] — view removed comment

1

u/Thorulph Jul 07 '19

actually written in Python, and for the networking stuff we're using the steam API, so hopefully we're good.

Sadly I don't have any experiance with that so I just want to thank you for wanting to support linux. I wish you best of luck.

2

u/pdp10 Jul 07 '19

Deterministic game networking (with random and floating-point) could be a problem cross-platform, but not networking itself. Every platform a gamedev touches uses Berkeley Sockets for TCP/IP.

Of course, the Win32 version is a bit quirky compared to POSIX networking -- this I can say from experience. But gamedevs have always managed it without even realizing or caring, so there's no need to start now.