Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Lyric Show (https://www.delphipraxis.net/77823-lyric-show.html)

sailxia 25. Sep 2006 12:12


Lyric Show
 
Liste der Anhänge anzeigen (Anzahl: 2)
hi, all:
i has write a demo to show lyric with bass.dll(Ver.2.3), but i feel it spend more CPU times...and i without any idea to change it, maybe, put it into a thread to draw_lyric will spend less CPU times.

the demo write by Turbo Delphi 2006.

i hope somebody have a good idea to show and draw lyric.

greets.

//Edit Test files...

igel457 25. Sep 2006 12:43

Re: Lyric Show
 
Hello,

I don't understand your problem. Why does your program need too much CPU? I only have 2% CPU Auslastung.
But if you want to improove your program draw everything on a backbuffer bitmap and just move this.

PS.: Do you have the rights to publish this music in the internet?

sailxia 26. Sep 2006 11:11

Re: Lyric Show
 
i think use a thread to Draw-Lyric will faster and spend less CPU...

r2c2 26. Sep 2006 13:01

Re: Lyric Show
 
Zitat:

Zitat von sailxia
i think use a thread to Draw-Lyric will faster and spend less CPU...

Sorry, but thats IMHO wrong. A thread consumes even a bit more CPU-Time due to the overhead. The advantage of a thread is, that you can do sth. else in your programm virtually at the same time. So a thread can be useful if you have probems with the drawing while moving the window for example. But a separate thread does not mean hinger a performance in general.

So think about igel457's suggestion. DoubeBuffered could be good word for feeding google with... :wink:

BTW: I haven't looked at your code. Too lazy. It's also because I haven't worked with bass.dll yet... if you know the specific piece of code, where the problem occurs, just post it here...

Christian

sailxia 27. Sep 2006 11:54

Re: Lyric Show
 
Thanks igel457 and r2C2's tips.


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:13 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz