On Sat, Jul 19, 2014 at 10:24 PM, Matt Rice <[email protected]> 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
[email protected]
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to