Jump to content


Photo

[WIP] PLi-DarkOS Skin


  • Please log in to reply
2041 replies to this topic

Re: [WIP] PLi-DarkOS Skin #521 littlesat

  • PLi® Core member
  • 57,122 posts

+698
Excellent

Posted 28 November 2023 - 15:36

So i've been told that for svgs is forced alphablending even if it is not enabled....so thats why it could be sluggish on problematic boxes if you have many svgs

->

This is a fact....see the fragment below in skin.py.

 

I looks like we're not really ready for svg... and I also remember it from the time it was introduced. I was happy as for programming it sounds good... but in practice some drivers/hardware are not helpful here... I was also busy with vectorize icons in our recent standard skin but I quickly stopped this project due to the same issues.... That was also why I recommend to change back to png.

def pixmap(self, value):
    if value.endswith(".svg"): # if graphic is svg force alphatest to "blend"
        self.guiObject.setAlphatest(BT_ALPHABLEND)
    self.guiObject.setPixmap(loadPixmap(value, self.desktop, self.guiObject.size().width(), self.guiObject.size().height()))

Edited by littlesat, 28 November 2023 - 15:39.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [WIP] PLi-DarkOS Skin #522 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 28 November 2023 - 15:36

So i've been told that for svgs is forced alphablending even if it is not enabled....so thats why it could be sluggish on problematic boxes if you have many svgs

 

I'm not sure.

If I look at picload.cpp, all images are converted to plain RGBA on load, regardless of the type, unless the "forcergb" flash is used in E2, in which case the alpha channel is stripped.

 

This suggests that the actual rendering happens indepdent of the image type used.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #523 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 15:43

Well if you are willing to force alphatest="on" for unsupported HiSi boxes in a trade with halo around the rounded images then will be fine


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #524 littlesat

  • PLi® Core member
  • 57,122 posts

+698
Excellent

Posted 28 November 2023 - 15:45

Please not! better find a solution (when possible)....Or I'm afraid get rid of svg.... I understand you tried but I know from experience in the past it does not really work for a lot of boxes due to driver/hardware issues. At least I'm convinced... and maybe this is also the reason why the movieplayer icons do not really work. And I agree also blend is a topic here...


Edited by littlesat, 28 November 2023 - 15:50.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [WIP] PLi-DarkOS Skin #525 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 28 November 2023 - 15:57

I see ATV once added some HiSil specific support, but only for the Dinobot boxes, it was never expanded.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #526 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 28 November 2023 - 15:59

Please not! better find a solution (when possible)....Or I'm afraid get rid of svg.... I understand you tried but I know from experience in the past it does not really work for a lot of boxes due to driver/hardware issues. At least I'm convinced... and maybe this is also the reason why the movieplayer icons do not really work. And I agree also blend is a topic here...

 

Can we do some root-cause analysis first, before resorting to drastic measures?

  1. what is exactly causing the issues?
  2. can we fix it?
  3. can we work around it?

Don't start with 3 if 1 and 2 haven't been looked at.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #527 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 16:18

 

Please not! better find a solution (when possible)....Or I'm afraid get rid of svg.... I understand you tried but I know from experience in the past it does not really work for a lot of boxes due to driver/hardware issues. At least I'm convinced... and maybe this is also the reason why the movieplayer icons do not really work. And I agree also blend is a topic here...

 

Can we do some root-cause analysis first, before resorting to drastic measures?

  1. what is exactly causing the issues?
  2. can we fix it?
  3. can we work around it?

Don't start with 3 if 1 and 2 haven't been looked at.

 

 

So i dont know what exactly causing the issues. But it is notably better with alphatest="on". So i suppose it has something to do with the hardware aceleration of alphablended pngs (as you also mentioned).

 

I dont think can be easily fixed because i suppose a hardware acceleration have to be added and i am not sure who can do this.

 

But definitely the problem is not SVGs. The problem is more general and it is for all images that are PNG and SVG. So removing SVGs will not solve the problem.


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #528 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 16:21

Please not! better find a solution (when possible)....Or I'm afraid get rid of svg.... I understand you tried but I know from experience in the past it does not really work for a lot of boxes due to driver/hardware issues. At least I'm convinced... and maybe this is also the reason why the movieplayer icons do not really work. And I agree also blend is a topic here...

 

SVGs in the movie player infobar doesnt work for another reason. They was rendering very well on PLi before with my old code in the skin (it was custom in my custom build).  So there is generally not issue with rendering SVGs (at least on Duo4KSE, Uno4KSE)


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #529 littlesat

  • PLi® Core member
  • 57,122 posts

+698
Excellent

Posted 28 November 2023 - 16:25

Here it seems not to work.. but I did not try on a VU+.... 


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [WIP] PLi-DarkOS Skin #530 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 28 November 2023 - 16:28

 

Please not! better find a solution (when possible)....Or I'm afraid get rid of svg.... I understand you tried but I know from experience in the past it does not really work for a lot of boxes due to driver/hardware issues. At least I'm convinced... and maybe this is also the reason why the movieplayer icons do not really work. And I agree also blend is a topic here...

 

Can we do some root-cause analysis first, before resorting to drastic measures?

  1. what is exactly causing the issues?
  2. can we fix it?
  3. can we work around it?

Don't start with 3 if 1 and 2 haven't been looked at.

 

 

  1. Blending on HiSi. Nothing to do with svg because that is not used on InfoBar.
  2. Well maybe rewrite c++ to take advantage of any hardware acceleration that may be available.
  3. Switch "blend" to "on" in HiSi boxes. That will speed things up, but will also not render images correctly.
  4. Throw the box in the garbage.


Re: [WIP] PLi-DarkOS Skin #531 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 16:29

Here it seems not to work.. but I did not try on a VU+.... 

 

The problem on your screenshot is a scaling problem with the svg. An issue in LoadPixmap i guess. It shows only upper section of the svg which is wrong.


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #532 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 28 November 2023 - 16:45


  1. Blending on HiSi. Nothing to do with svg because that is not used on InfoBar.
  2. Well maybe rewrite c++ to take advantage of any hardware acceleration that may be available.
  3. Switch "blend" to "on" in HiSi boxes. That will speed things up, but will also not render images correctly.
  4. Throw the box in the garbage.

 

hehehe...

 

It whould be a bit sad for everyone with a HiSil box to be advised 4, when the issue may well be 2.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #533 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 16:50

The problem with option 2 is who will do that....

So more possible options are 3 and 4 hahahhah


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #534 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 16:52

Here it seems not to work.. but I did not try on a VU+.... 

 

So to work svgs correct is needed a modification of MultiPixmap. I have it modified here.

 

to the loadPixmap you have to supply a width because that is strongly required for svg.


Edited by DimitarCC, 28 November 2023 - 16:58.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #535 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 28 November 2023 - 16:53

The problem with option 2 is who will do that....

So more possible options are 3 and 4 hahahhah

 

Well, the first step is identifying the problem.

 

Second step is to see if we can do something about it, and how.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: [WIP] PLi-DarkOS Skin #536 littlesat

  • PLi® Core member
  • 57,122 posts

+698
Excellent

Posted 28 November 2023 - 17:00


So to work svgs correct is needed a modification of MultiPixmap. I have it modified here.

 

to the loadPixmap you have to supply a width because that is strongly required for svg.

It looks indeed we're looking at a kind of zoomed in icon.... So it sounds we have to wait for the little change.... ) Sounds this one will also be resolved....


Edited by littlesat, 28 November 2023 - 17:00.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [WIP] PLi-DarkOS Skin #537 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 17:03

Well i can make a pull for that....But i am not sure is the code will be optimized. Maybe i can give you the py and you can change it if you like?

Attached Files


Edited by DimitarCC, 28 November 2023 - 17:06.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: [WIP] PLi-DarkOS Skin #538 littlesat

  • PLi® Core member
  • 57,122 posts

+698
Excellent

Posted 28 November 2023 - 17:06

+1


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [WIP] PLi-DarkOS Skin #539 littlesat

  • PLi® Core member
  • 57,122 posts

+698
Excellent

Posted 28 November 2023 - 17:35

I at least could confirm here that setting the size during loading and scale to -1 retrieves a good picture.


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: [WIP] PLi-DarkOS Skin #540 DimitarCC

  • PLi® Contributor
  • 1,566 posts

+68
Good

Posted 28 November 2023 - 17:52

Ok. So it works at least.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)



8 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users


    Bing (1)