-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimized 16 color for pindmd3 #119
Comments
Specifically, it appears that "RenderColoredGray4(ColoredFrame frame)" currently just upscales to 24-bit color, instead of using a palette with a smaller stream of data, which is likely adding the latency. Someone with access to a pindmd3 and knows its api could probably implement an indexed 16 color renderer instead. |
The problem is that PinDMD3's firmware doesn't support that. It's either 2-bit palette-based or full 24 bit... |
There is a 4bit mode as this is how newer stern games work. Ill find the relevant methods / packet structure. |
Well yes there is, but AFAIK there is no way to set the 16 colors of the palette individually. I think we talked about this and your answer was a firmware upgrade (which would be good too!). |
Ah yes indeed that would be 16 shades of one colour. I can certainly add a 16colour mode if this is now required? But from testing(long ago) the 24bit mode could easily handle upto 30fps usb data stream without any lag so i wouldn't of thought the display is causing any latency issues? unless the framerate is higher then 30fps? |
VPM sends out frames up to 60fps. The lag goes away if colorizations are not used. Pin2DMD does not have this issue either in 16 indexed color mode. So I do think we need this feature added to solve the issue correctly. |
Pin2DMD is very different hardware/software so will behave differently. Is there a reason for the 60fps as no pinball rom i am aware of ever goes above 24-30fps? Is this a constant 60fps stream or only sends a frame if different to the previous frame(saves load of usb bandwidth) if done this way and this is how i initially coded it in pinMAME. |
Sure. The point is that it doesn't have the lag issue, so it rules out issues with the coloring system. Reviewing VPM recordings in the colorization tool, I regularly see frame changes at ~16ms. There are a lot of slower ones too, of course. Freezy's code also will ignore and not send dupe frames. The particular sequence that triggered this request is AFM's video mode. |
Sounds like adding a 4bit frame data plus the 16 colours mode to the firmware might help? This will only be 16 bytes bigger then the current 4bit mode. |
Yep sounds good. |
Give me a few days its been a loooong time since i compiled this firmware..... :) |
I have not forgotten just been a bit busy! :) I hope to get this done this week! (once i remember how to compile the firmware again :D) |
Cheers! |
Development cobwebs are the worst to dust off. :) |
Can now compile the firmware which is a good first step :D now to add the extra function :) |
New buffer format [0x32] Not tested yet as left pinDMD at home DOH but here is the bin / installer I will test my self tomorrow Regards |
I'm very happy to hear this Russell. |
Did not get round to testing, extremely busy at work but will this week some time :) |
Cheers! Got an example command how to flush? EDIT: Also, does the new firmware return a different version? If so, what's the string? I'm currently matching the regex |
@russdx any update? Will push out a new version soon and it would be great to have that in! I'm a bit hesitant to flush the firmware without instructions... So just to be clear, the new frame format is:
Which makes 2098 bytes per frame. So what's the |
Sorry ignore the 0x2089, yes the 2048 is the 4 planes of frame data. 0x32 is the new command byte that tells the firmware its going to receive rgb values for each shade and that the rest of the data is offset more then a usual frame. I am working from home tues-thurs so will get it tested :) Regards |
sorry got a bit side tracked with job / was on holiday. back now! will give the firmware a test! |
We appreciate you taking the time to work on the update. :) |
no worries, i promise i will get round to it! just extremely busy at the moment hehe :) |
bump - not meaning you should jump on it. Just a reminder in case you've forgotten about it. |
Yes sorry guys its on my list just finding the time to sit down and test is near impossible at the moment but ill get round to it :) |
Guys i have not forgot! i have 2 weeks off for xmas in a week! i will get this sorted!! :) |
One week plus two weeks should be 21 days. Any news ? You should never give a estimated time for something. Then people will start to nag a few days sooner ;) |
this time i just forgot! i actually did the work months ago just did not have time to dig out the pinsmd3 to test it. No estimates! ill try and get this done when i can. |
And I'll keep reminding you <3 |
@russdx You mean the DMDExt test software? Or Pixelcade? I Googled it, Pixelcade is just another kind of pinDMD and I guess the Freezy test software just check that in case I may have it on my machine. Well, if DMDExt talks to the pindmd via COM rather than the vid/pid directly, what should I do, then? |
@slaslayer @lonchaney1000 the error might just be because pinDMD is connected at that point. Does yPinball throw any errors or any logs as to why it's not happy? |
@russdx Here is the PinballY log about the realdmd. Thanks for your help 21 avril 2022, 12:28:45: Session started Detecting and configuring real DMD device
Searching for real DMD device DLL
|
Log looks ok, does not appear to fail finding the DMD. |
@russdx Before the update the pindmd splash screen was there untill pinballY starts. Now it stay there. So I have to close PinballY, start a VPX table, and then the splash screen disapears. When I close the table and VPX, I have then a black screen. If I start PinballY after that, I just have the black screen. |
Yeah sounds like pinballY is no longer talking to the pinDMD, can't think how this update would of affected it like this though. The weird thing is pinballY appears to use freezy .dll but you mentioned this works ok stand alone? |
@russdx I just found something! I replaced the dmddevice.dll and dmddevice64.dll in the PinballY folder with the newer ones from my Vpinmame folder and now it works! Sounds it was not important until now, but the firmware update changed the rules maybe. The only last thing which doesn't work is when I close a table and get back to the front end, the PinballY splash screen doesn't come back, but I will check later, it certainly a small thing somewhere. Thanks a lot for your help and your time. :) |
Ah yes the firmware update needs the latest version of freezys .dll I should of mentioned that earlier hehe. Glad it’s all working :) |
@russdx Yes, I'm really happy, thanks again, Russell :) |
@russdx . Greetings, I do need the firmware upgrade: KUID=0780CA98-023E0132-03D48D16 |
@russdx Just checking, are you still doing the thing where we send in our serial number in order to get Freezy installed on pindmd3? Haven't seen a post since April, just checking before I go dig up my serial. |
I am not. I learned that dropping the brightness of the illumination seems
to fix 99% of the problems. I have a new pindmd3, so I am good to go.
Blessings
…On Tue, Sep 20, 2022 at 10:57 PM RunningMan-01 ***@***.***> wrote:
@russdx <https://github.com/russdx> Just checking, are you still doing
the thing where we send in our serial number in order to get Freezy
installed on pindmd3? Haven't seen a post since April, just checking before
I go dig up my serial.
—
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY5KM75V2BKMKMJR2JCTRP3V7J2R5ANCNFSM4FI4L3GA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Dr. Benedetto Mongiovi
6007 Tremayne Drive
Mount Dora, FL 32757
Cell Phone: 352-638-7286
|
@russdx Hi i have also a pindmdv3 since 2016 i have still version 1008, do you still make does bin files ? i have my kuid number |
Hello Yes still, building firmware for all :) |
@russdx that's great good news i buy you a beer for that KUID=05FCCAAE-020D5139-05A48D16 tnx |
That's great news i Buy you a beer for that
KUID=05FCCAAE-020D5139-05A48D16
Kind regards
Timmy
Van: "russdx" ***@***.***>
Aan: "freezy/dmd-extensions" ***@***.***>
Cc: "timmy" ***@***.***>, "Comment" ***@***.***>
Verzonden: Woensdag 15 februari 2023 19:18:51
Onderwerp: Re: [freezy/dmd-extensions] Optimized 16 color for pindmd3 (#119)
Hello
Yes still, building firmware for all :)
Will build another batch this Friday, send over your KUIDs
—
Reply to this email directly, [ #119 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/A55NK2KESSMX7XRT4SBBT3LWXUMYXANCNFSM4FI4L3GA | unsubscribe ] .
You are receiving this because you commented. Message ID: ***@***.***>
|
I'd really love to make use of all the amazing alt colors : ) |
Whew, that was quick. However, when I click the links they all seem to redirect to the http://pindmd.com/ homepage. |
hmmm site permissions gone a bit funny by the looks of it, |
@russdx ok i have sent you a mail from timmy.luppens@telenet.be |
Works like a champ. Thank you! |
Hello, any chance I could get a firmware build? Thanks! |
Hello Yes, i'll sort this out this week for you :) |
@shdadstl If links do not work i'll send over email (contact me at russdx @ gmail . com) |
I would like to get updated firmware for my PINDMD3. KUID is 0EDBCAE4-023DE123-0F178D16 Thanks! |
Hello Can you email me at russdx @ gmail . com |
Hi Russ, I need to get an updated firmware for my PinDMD3 please. Thanks. |
Can you email me at russdx @ gmail . com Thanks :) |
There is still a small delay that makes mini games like the video mode in afm not playable with *.vni enabled. Possible to fix ?
http://vpuniverse.com/forums/topic/3461-sambuild31-beta-thread/?do=findComment&comment=39918
The text was updated successfully, but these errors were encountered: