Issues.00542 - lordmundi/wikidoctest GitHub Wiki
00542: increase drawstar plugin performance
Summary: increase drawstar plugin performance
Created: 2015–05–22 11:15
Status: Released
Category: Request
From: frankie
Version: 2.3
Released_In: 2.4
Description:
the dsp_drawstar plugin, which is used to draw the star field on the background, runs slower than it needs to. This is a request to make it run faster.
Comments
frankie April 12, 2016, at 12:07 PM: This has been done. Performance is greatly improved. Also, the star rendering is done now in shaders which can be specified by the user in the stars config file. See configs/fancy_stars.cfg as an example, and the default shaders under "shaders/stars.fs" and "shaders/stars.vs".
Associated Commits
| commit | a98c608c1ff0598685bbc68a2ea7524843b02821
link5 |
||
| Author: | Frank Graffagnino
|
| Date: | Tue Apr 12 12:34:03 2016 -0500
|
| Message: | [@Issue 00542: Improved dsp_drawstar performance
Reimplemented how stars are rendered by rendering them in an array draw call and using shaders and vertex attributes. Source code is provided. Also, the shaders are provided and available for users to modify. @] |
Affected Files:
configs/fancy_stars.cfg | 2 +
plugin_Darwin/dsp_drawstar.so | Bin 39664 -> 63448 bytes
plugin_Linux_FC3/dsp_drawstar.so | Bin 54156 -> 86646 bytes
plugin_Win32/dsp_drawstar.dll | Bin 459484 -> 483687 bytes
shaders/stars.fs | 40 +
shaders/stars.vs | 64 ++
src.dist/plugins/examples/dsp_drawstar.c | 1573 ++++++++++++++++++++++++++±--
7 files changed, 1547 insertions(+), 132 deletions(-)
| commit | b38706dfe67525d1fcff789a4ced4117da169a26
link6 |
||
| Author: | Frank Graffagnino
|
| Date: | Tue Apr 12 10:36:44 2016 -0500
|
| Message: | [@Issue 00542: Fixed the bug where looking at the sun would cause drawstar to
blow up Had to cap the illumination going to the shaders to 1.0. Also disabled the debug that was still in there. @] |
Affected Files:
src/plugins/dsp_drawstar.c | 17 +++++++++++++++±
1 file changed, 16 insertions(+), 1 deletion(-)
| commit | 2fb69afaa56046caae51050c0167034326fb8f9a
link7 |
||
| Author: | Frank Graffagnino
|
| Date: | Fri May 29 17:27:12 2015 -0500
|
| Message: | [@Issue 00542: Updated dsp_drawstar to render stars on GPU to improve
performance Made massive performance gains. Still has an odd bloom/brightness issue when the sun comes into view. @] |
Affected Files:
.gitignore | 1 +
src/plugins/dsp_drawstar.c | 1550 +++++++++++++++++++++++++±--
src/plugins/linux | 8 ±
src/plugins/mac | 8 ±
src/plugins/star_shaders/default_stars.fs | 40 +
src/plugins/star_shaders/default_stars.vs | 64 ++
src/plugins/win32 | 8 ±
7 files changed, 1545 insertions(+), 134 deletions(-)