AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Lyric Show

Ein Thema von sailxia · begonnen am 25. Sep 2006 · letzter Beitrag vom 27. Sep 2006
Antwort Antwort
sailxia

Registriert seit: 9. Apr 2006
21 Beiträge
 
#1

Lyric Show

  Alt 25. Sep 2006, 12:12
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...
Miniaturansicht angehängter Grafiken
preview_181.jpg  
Angehängte Dateien
Dateityp: rar lyricshow_test_790.rar (297,8 KB, 24x aufgerufen)
  Mit Zitat antworten Zitat
Benutzerbild von igel457
igel457

Registriert seit: 31. Aug 2005
1.622 Beiträge
 
FreePascal / Lazarus
 
#2

Re: Lyric Show

  Alt 25. Sep 2006, 12:43
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?
Andreas
"Sollen sich auch alle schämen, die gedankenlos sich der Wunder der Wissenschaft und Technik bedienen, und nicht mehr davon geistig erfasst haben als die Kuh von der Botanik der Pflanzen, die sie mit Wohlbehagen frisst." - Albert Einstein
  Mit Zitat antworten Zitat
sailxia

Registriert seit: 9. Apr 2006
21 Beiträge
 
#3

Re: Lyric Show

  Alt 26. Sep 2006, 11:11
i think use a thread to Draw-Lyric will faster and spend less CPU...
  Mit Zitat antworten Zitat
r2c2

Registriert seit: 9. Mai 2005
Ort: Nordbaden
925 Beiträge
 
#4

Re: Lyric Show

  Alt 26. Sep 2006, 13:01
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...

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
Kaum macht man's richtig, schon klappts!
  Mit Zitat antworten Zitat
sailxia

Registriert seit: 9. Apr 2006
21 Beiträge
 
#5

Re: Lyric Show

  Alt 27. Sep 2006, 11:54
Thanks igel457 and r2C2's tips.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:38 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