Software Support > DOS/WinCab

Sound stuttering badly at page change over

<< < (5/6) > >>

Chris:

--- Quote from: david656 on October 20, 2009, 03:04:42 am ---what a difference! I've had about a minute to test it but will try more later!

there's the slightest tick occasionally ... may have been the song anyway.

What was it that caused such a problem?

Again thank you for taking time out to sort this

--- End quote ---

If it "ticks" when you have DebugLog set at 3 or higher, please send me the log... I can't imagine where it is still catching, if it is the jukebox and not the song.

When I draw the animations, data from both the previous page and the next page are visible.  What I do is change the page number internally, egenerate the page, but when it is time to refresh the GUI I redirect the GUI output to memory so the screen doesn't change.  I then made a copy of the existing screen to another memory buffer, and over the course of the animation, portions of both memory buffers are used to build the display. 

The problem was in copying the existing screen to memory.  Reading an image from the screen and copying back to the computer is incredibly slow.  I knew it was slower than a regular memory read but never imagined that the difference was that dramatic; it is only now that I have a widescreen high-res monitor myself that I am starting to see it.  So now I redirect the GUI to memory BEFORE updating the page, refresh it to one buffer, update the screen, then refresh it to a second buffer so I don't have to copy from the screen anymore.

david656:
the tick has suddenly gone, probably the song.

OK, i think i understand the issue  ;D. basically.. there was a lot going on at once?!?

Again thank you for looking into this! its allowed me to continue with my jukebox project :)

Not to be cheeky but when can we expect flac support?

cheers.

PS: have now donated through (nicola) and your donation button on your website :-)

Chris:

--- Quote from: david656 on October 20, 2009, 06:48:42 pm ---OK, i think i understand the issue  ;D. basically.. there was a lot going on at once?!?

--- End quote ---

Well, it is specifically a matter of copying from video memory to the system... apparently modern 3D cards are optimized to have the data flow the other direction...


--- Quote ---Again thank you for looking into this! its allowed me to continue with my jukebox project :)

--- End quote ---

Thank you for helping me find the issue! It made a huge difference in album-skin animation for everyone.


--- Quote ---Not to be cheeky but when can we expect flac support?

--- End quote ---
I have a library for it; I have started looking into what it would take to integrate it.


--- Quote ---PS: have now donated through (nicola) and your donation button on your website :-)

--- End quote ---
Thank you very much... I truly appreciate it!

david656:
Maybe that's why I thought, "I swear my old NVIDIA didn't have this problem!"

It sounds like everyone is a winner  ;D But have you updated the download on your website?

Great! can't wait to hear more about the flac support.

 :cheers:

PS: If i finish that skin, would you like a copy? i have also made a matching skin for SimpleTouch FE, that also isn't finished!

Chris:
I've hacked in some FLAC support and it works, sort of. It took 90 seconds to load a song and crashed 3/4 of the way through. I think the FLAC wrapper I am using was meant for small samples, not full songs. So I am probably going to have to write directly against the FLAC library, meaning it'll take time rather than being a simple drop-in.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version