• Welcome to Theos PowerBasic Museum 2017.

BassBox 2011 (version 2.60)

Started by Patrice Terrier, January 07, 2009, 09:03:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

Quotemultiple calls to glFlush(),

is not the cause of the error, still investigating...

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#91
I have found the bug in the "Matrix.dll" plugin.

I first thought it was an ATI problem, but it is not.

When he wrote the plugin, Jürgen used DIM MLetter(0 TO 80, 0 TO 81) AS MatrixLetters
but in further places he uses the facility to use direct addressing using MLetter(nArrayIndice),
where nArrayIndice could range between 0 and 6641.

Unfortunatly in several cases nArrayIndice could become out of range, and this was not checked.

Until i post a new version, you can solve the problem adding the code shown below in red:

SUB JH_MatrixPoint_Color4f(BYVAL sXYPos AS LONG)    ' MLetter(FrameX,FrameY) Position yx
   sXYPos = MIN&(MAX&(sXYPos,0), ARRAYATTR(MLetter(), 4) - 1)
   CALL glColor4f(MLetter(sXYPos).r / 3.6, _
                  MLetter(sXYPos).g / 1.5, _
                  MLetter(sXYPos).b / 2.8, _
                  MLetter(sXYPos).a - (1 / (30 * (nvalue / JH_GetHighLevel(0,0)))) _
                 )
END SUB


The strange thing, is that nobody never had a problem with this plugin, including myself, until i moved to intel CORE i7.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Petr Schreiber

Hi Patrice,

thanks for letting us know, this option did not occurred to me.


Good catch!,
Petr
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Patrice Terrier

Lattest version 2.58 has been attached to the first post of this thread, to fix the ZIP file corruption caused by the "Server Collapse".

Version 2.58, comprise:

  • the latest plugins,
  • mp3 ID3 tag "cover art" support,
  • optional higher FPS rate.

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#94
I found that using the OpenGL extension wglSwapIntervalEXT is a NO NO when running VISTA/SEVEN in Aero mode.

For example in BassBox when the "higher FPS rate" is on, and playing the "Helios" plugin, the CPU charge jump to more than 50%, because of wglSwapIntervalEXT being turned ON (default).

Turning it OFF,  decrease the CPU usage of the "Helios" plugin  below 5%...

Thus i am making change to BassBox, to disable wglSwapIntervalEXT when DWM is used, cheking the DWM state with my built-in zDwmIsCompositionEnabled API.


Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

The first post of this thread has been updated to version 2.60.

All the plugins and the player itself have been updated, to turn OFF wglSwapIntervalEXT when DWM is running, reducing the CPU footprint drastically when using "higher FPS rate".

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

Since version 2.60, when BassBox is running in full HD, even in High FPS mode, most of the time it uses less than 4% of the second CPU when running on multi-core processors.

I wanted to tell you this, because most of you will never notice, if i don't say it myself ;)

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

Bubble

Here is a new plugin for BassBox 2.63, the zip file is attached to first post of this thread.



...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Larry Charlton

The other plugins seem to be working but bubbles does funny stuff on my computer.

Patrice Terrier

#99
You are missing the attached pwave.jpg texture. (You must copy it into the BBplugin\texture folder)

Looks like also, that you are not using version 2.63, then it have attached it to the first post of this thread

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Larry Charlton

Yep, that was it, not sure how I missed it, but it's working great.  Full Screen I'm seeing about 5% on one core :D

Patrice Terrier

Larry,

Thank you for the feedback.

The problem is to find the right balance between the artistic vision and the programming requirements.

I am always trying hard to keep the memory usage as low as possible, for Bubble it tooks me a full day before i could reduce it from 89% down to 3% ;)

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#102
Cubic Dream (ZIP file is attached to the first post of this thread)

In this new plugin i have checked a new texture mapping technic, to see if i could produce glossy effects, without impacting too much the CPU. And so far, i should say that i am pleased of the result, thus i am sharing it with you  :)

To realy see what is going on, play it full screen.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Jürgen Huhn

That was a nice surprise to see , you've written the bubble BBPlugin now. I still remember the day when you had the idea for it.
Very nice work..!!  :) Also the Cubic Dream BBPlugin is really nice, best view in Fullscreen.
And i like the new Trackbar Buttons.. ;D

I have 0% CPU-usage with the bubbles in Fullscreen and high FPS mode on my 3,2 GHz ICore7, 8 GB DDR3 Ram.

...
.¸.•'´¯)¸.•'´¯)¸.•'´¯)¸.•'´¯)
¤ª"˜¨¨¯¯¨¨˜"ª¤....¤ ª"˜¨

maurice_fischer

http://www.jose.it-berater.org/smfforum/index.php?topic=2975.45

hello Patrice, do you can fix the "matrix.zip" file? I cannot open this zip file and the content, there are error messages. bye, largo