Re: race condition (sort of)? message box verus function return

Jonathan Dearborn <[email protected]> Wed, 15 Feb 2017 10:05:37 -0500
Newsgroups gmane.comp.lib.sdl
Message-ID <CA+DSiHZHfLKWoqDyeGUDc6Par8pJdLjcgQr9NmQEFfO9TPxeuQ@mail.gmail.com>
For optimizing speed, do not print anything at all. :)

Jonny D


On Wed, Feb 15, 2017 at 10:00 AM, speartip <[email protected]> wrote:

>
>
>
> Quote:
>
> Flush exactly once, at the very end of your output, and always use
> 'std::flush' instead of 'std::endl' because 'std::flush is more explicit
> about your intention.
>
>
>
> Yes, following that advice, that's true. Makes more sense when I look at
> the changes.
>
>
>
> Quote:
>
> That's a bad idea
> because flushing slows down the program.
>
>
>
> So what's the best balance in a speed optimized routine?
>
> _______________________________________________
> SDL mailing list
> [email protected]
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org