Live data from Hacker News

Windows game developer about porting to and using OS X

shiningrocksoftware.com

101–110 of 205 posts

Re: Windows game developer about porting to and using OS X

#102
post #95

Earlier quoted context omitted.

Furthermore SDL2 is absolutely fantastic and just works. You may say, you do not want to use it as it "just" abstracts away keyboard/mouse/controller input, window and GL context creation but these things are damn hard to get right.

Also, your game will continue working natively when linux transitions to using wayland/mir, without having to run via an X11 shim.

SDL2 also have nice SDL_DYNAMIC_API feature that let users to switch to different library version even if it's statically linked.

Re: Windows game developer about porting to and using OS X

#103
post #101

"but then realized I could open a term window and that I was really using a unix-like system with a user interface that wasn’t X Windows." Where would one have to hide to retain this level of ignorance for so long?

This is very rude.

Re: Windows game developer about porting to and using OS X

#104
post #96
post #95

Earlier quoted context omitted.

Also, your game will continue working natively when linux transitions to using wayland/mir, without having to run via an X11 shim.

This is true for the alternatives as well, approximately nobody writes raw Xlib apps in modern times.

Unfortunately most of game developers that decide against use of SDL2 do that based on their experience of Windows development where it's pretty much standard to have own code for everything (except development tools and some middleware). E.g they think that their own code going to take less lines and be cleaner than SDL.

As result these people usually don't even consider any alternatives as all of them even worse from their standpoint.

Re: Windows game developer about porting to and using OS X

#105
post #77
post #74

I’m not using SDL or any other library to hide those platform differences. Once start working on Linux port he'll regret about that. Every developer that start with own platform-specific code end up using SDL2 anyway. Don't do that mistake.

An alternative is Cocos2d-x, but they manage memory using a single autorelease pool.

I might be wrong, but I think I remember that Cocos2d-x uses SDL under the hood.

Re: Windows game developer about porting to and using OS X

#106
post #64
post #2

Xcode isn’t too bad. I wish the author told me more about it than just this. Can somebody comment on how it compares to recent VS editions these days? About 5 years ago I also looked into using OSX as main OS. As I've always been using non-commandline graphic text editors and IDEs for most coding that made XCode the go-to environment but I just couldn't deal with it even though I tried. I don't remember all details b…

I use both on a regular basis, VS for my job and XCode for hobby work. I prefer VS because it performs better when editing and navigating the code base ( it is actually faster to run in it inside VirtualBox than XCode natively ). Also VS has code navigation and editing features that XCode lacks. For instance if you want to do a find/replace in VS you can double click on a word do Ctrl+H and the word you selected popu…

Here's an overview of all Visual Studio shortcuts (there are tons):

http://visualstudioshortcuts.com/2015/

Re: Windows game developer about porting to and using OS X

#107

> Apparently my vi command muscle memory hasn't faded. Back in the day I did most of my dev work on Solaris. I then spent 4 years as CTO as a startup that was pretty much only Windows. When I subsequently went back to working at a unix shop I was initially struggling with vi as I tried to read some of the C++ code. I couldn't remember commands, was having to refer to the man pages every few mins. It was torture. A co…

This always happens to me with passwords. I have trouble remembering some passwords. Yet, when I'm in front of the page and I actually need to get in, either I lose some focus and let my unconsciousness do the work or I won't get it right.

This is nice. Some criminals torture you: "Give us your password so we can take your money". "I cannot give it to you! I can only enter it in a stress-free environment when not thinking about it."

(Applies also to those government warrants forcing you to divulge information.)

Re: Windows game developer about porting to and using OS X

#108
post #101

"but then realized I could open a term window and that I was really using a unix-like system with a user interface that wasn’t X Windows." Where would one have to hide to retain this level of ignorance for so long?

I'm sure he'd heard that OS X had Unix underpinnings but if this was the first time he'd needed to actually touch a Mac, it was probably a relief to see how smooth it actually is. “Good deal, I can do that.”

If he's worked in the Windows world, the most likely comparison was probably Cygwin or Microsoft's old Services for Unix, both of which are much clumsier experiences obviously taped on to different base.

Re: Windows game developer about porting to and using OS X

#109
The fact that it’s running at 1 FPS is a little disheartening – I know the GPU is fast enough. I’ve got a Windows machine with an Intel Iris Pro 5000 that runs Banished just fine, which is the same graphics hardware in my MacBook Pro. I’ve got my suspicions as to whats going on but I have a bunch of testing ahead of me to make sure I fix the issue properly.

Did the author buy a MacBook Pro just for this purpose? I'd assume this is his personal laptop, but his "Using a Mac" section sounds like he's not a Mac user even in his free time.

Re: Windows game developer about porting to and using OS X

#110

> Apparently my vi command muscle memory hasn't faded. Back in the day I did most of my dev work on Solaris. I then spent 4 years as CTO as a startup that was pretty much only Windows. When I subsequently went back to working at a unix shop I was initially struggling with vi as I tried to read some of the C++ code. I couldn't remember commands, was having to refer to the man pages every few mins. It was torture. A co…

This always happens to me with passwords. I have trouble remembering some passwords. Yet, when I'm in front of the page and I actually need to get in, either I lose some focus and let my unconsciousness do the work or I won't get it right.

Yes! That same has happened to me. I'm sitting there trying to remember my password, but I can't. But I just try to start typing it and I get it right. I hadn't remembered my password, I'd only remembered the motions.
Post reply on HN