Re: TextOut prints a little late?
- From: "Joe Butler" <ffffh.no.spam@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Sep 2007 05:15:22 +0100
Presumably it's the GDI batching?
Try with GdiSetBatchLimit(1)
or try: GdiFlush() immediatly after your first TextOut() call.
The batching should make drawing faster overall, so, you'd only want to do
this for special occations. On my XP, it seems that 20 is the default
batching limit and it cannot be raised above this amount. Not sure if
that's specific to my graphics card/hardware, or an XP fixed limit.
"deostroll" <deostroll@xxxxxxxxx> wrote in message
news:1190772470.352419.149250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Inside a function I have a Sleep() in between 2 TextOut() calls. When
I call the 1st one I expect it to print immediately before Sleep() is
executed; but instead I get the output of both calls at the same time
after the Slee() and after the funtion has exited...!
Why does this happen?
What is the proper way to print immediately?
--deostroll
.
- Follow-Ups:
- Re: TextOut prints a little late?
- From: deostroll
- Re: TextOut prints a little late?
- References:
- TextOut prints a little late?
- From: deostroll
- TextOut prints a little late?
- Prev by Date: TextOut prints a little late?
- Next by Date: Re: TextOut prints a little late?
- Previous by thread: TextOut prints a little late?
- Next by thread: Re: TextOut prints a little late?
- Index(es):
Loading