discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep for games


From: Ivan Vučica
Subject: Re: GNUstep for games
Date: Sun, 20 Jul 2014 15:30:29 +0100

On Sat, Jul 19, 2014 at 10:24 PM, Matt Rice <ratmice@gmail.com> wrote:
the problem was that NSOpenGLContext doesn't create a GL context until
it's been set to a view, leading us to intialize much of the graphics
engine/upload textures during awakeFromNib, and having a blank view
until that is finished, this may/may not have changed in the time
since, not sure.

You could have probably left an NSImageView displaying a static image immediately after load, and started loading during first call to the render or update method.

On iOS, for example, you'd be shut down very quickly if the game did extensive loading immediately after launch; the OS is far more tolerant if an extended 'program not responding' operation is done afterwards. :-) I recall having more trouble getting other frameworks and engines to display something sensible immediately upon opening the window. iOS is rather nice in that regard; UIImageView containing Default.png is a nice trick.

For Cocoa, on the other hand, I can't recall doing these things manually, but I have a feeling NSImageView in the nib would have done the trick.
--
Ivan Vučica
ivan@vucica.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]