| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Fast colored GPI text output - sigh |
Hello, you OS/2 Gurus ;-) This problem is driving me nuts: I see dozens of PM programs that do fast text output using GPI procedures, namely GpiCharStringPosAt(), WinFillRect() and GpiSetColor() / GpiSetBackColor(). Scrolling works smoothly and fast (e.g. in text browsers or editors), almost as fast as on a text screen under MS-DOS. I have tried everything to get a similar performance, but no way. I am using a memory presentation space, all writing is done in the associated bitmap and copied to the real window on receipt of the WM_PAINT message. My window has the CS_SYNCPAINT window style, and whenever the window must be updated because the bitmap content has changed, the procedure WinUpdateWindow () ist called. Either the painting on the bitmap or the call to GpiBitBlt() (to copy the bitmap to the window) takes too much time - it takes almost half a second to display the whole window. I am using GpiCharStringPosAt() to paint the text, and to get a better performance, I always paint one complete line instead of drawing each character separately in different colors. But event that should be possible - communication programs like ZOC prove it. So, can anybody tell me how this is done? Tschuess, Steffen --- FastEcho 1.45a+* Origin: P.I.L Grevenbroich, FRG (2:2433/1860) SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 @PATH: 2433/1860 1800 1200 225 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.