Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparison of Rendering Performance Between Multimedia Libraries Allegro, SDL and SFML
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2019 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Jämförande av renderingshastigheten mellanmultimediabiblioteken Allegro, SDL och SFML (Swedish)
Abstract [en]

In this report the rendering performances of the multimedia libraries Allegro, SDL and SFML have been compared. Highest performance is achieved by writing code directly to the low level graphical APIs, though it requires much more work than using the multimedia libraries graphical functions built on one of these graphical APIs. Thus it is common to use a multimedia library or similar for visualization tasks. The total number of frames rendered in one second was counted for static, alpha blended, rotating, and moving images in each library. Every test was run with few to very many images, and the programs were tested on six different computers: three laptops with integrated GPUs and low power dual core CPUs, and three desktop computers with external GPUs and quad core CPUs with unlocked clock rate. Allegro performed best of the three on laptops when the image load was very high, but fell behind by up to 50% in all other cases. SDL had the strongest performance on desktop computers, especially when rendering very many images, making it a prime candidate for high load graphical applications on desktops. SFML performed best overall, making it the best choice when targeting a wide range of different machines.

Abstract [sv]

I denna rapport jämförs renderingsprestandan mellan multimediabiblioteken Allegro, SDL och SFML. Den högsta prestandan uppnås genom att skriva kod direkt till en lågnivå-API för grafik, men det kräver mycket mer kod än att använda ett multimediabibliotek. Därför är det vanligt att använda ett multimediabibliotek eller något med liknande funktioner för visualiseringsarbeten. Jämförelsen bestod av att räkna det totala antalet skärmbilder som renderades under en sekund för statiska, semitransparanta, rotarande och rörliga bilder. Varje test kördes med 50 till 10 000 bilder som renderades samtidigt, och programmen testades på sex olika datorer, tre bärbara med integrerade GPUs och tvåkärniga energieffektiva CPUs, och tre stationära med externa GPUs och fyrkärniga CPUs med upplåst klockfrekvens. Allegro presterade bäst på bärbara datorer under en hög belastning, men var upp till 50% sämre i alla övriga tester. SDL presterade bäst på stationära datorer, därför är det ett bra val för krävande grafiska program på stationära datorer. SFML presterade bäst överlag, vilket gör det till det bästa valet för att skapa grafiska program som är tänkta att köras på olika starka datorer.

Place, publisher, year, edition, pages
2019. , p. 38
Series
TRITA-EECS-EX ; 2019:355
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-259756OAI: oai:DiVA.org:kth-259756DiVA, id: diva2:1353400
Supervisors
Examiners
Available from: 2019-09-24 Created: 2019-09-23 Last updated: 2019-09-24Bibliographically approved

Open Access in DiVA

fulltext(640 kB)6 downloads
File information
File name FULLTEXT01.pdfFile size 640 kBChecksum SHA-512
c91d2c2a60068cb68e3d9913c9c679f6e74dc5772be412b534d7da2bb7cae19e6e6a3fde390c8547d73a362d607858f4c4b269e21cd2aa4b7c1a7c7b5318a863
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 6 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 9 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf