Author Topic: 2.0.7dev performance  (Read 2365 times)

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #15 on: April 23, 2010, 07:10:18 pm »
Yay, thanks for that description, now I can reproduce it. Will try to fix it now :)
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

kelvin.cushman

  • Newbie
  • *
  • Posts: 12
Re: 2.0.7dev performance
« Reply #16 on: April 26, 2010, 09:34:57 am »
I also have this issue please can someone help :-[

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #17 on: April 29, 2010, 12:40:53 pm »
Regarding the <txt> element, I've made some progress (though there are still some issues).
I'm pretty sure the SWFs have the same issue, though. I'll probably be able to work around
it for the next version, in the worst case with an additional parameter (it's most likely related
to bitmap caching used in some places).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

ismaelj

  • Newbie
  • *
  • Posts: 15
Re: 2.0.7dev performance
« Reply #18 on: May 26, 2010, 03:30:49 pm »
I've updated to 2.0.8 and the problem reported in response 14 to this topic still persist, but at least the "patch" of adding a filter to the style stills works. The only problem with this approach is the slowness that the filters add to page turning

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #19 on: June 03, 2010, 03:43:11 pm »
Have you had a look at the allowbmpcaching attribute? Particularly, see this post, as it seems related.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

ismaelj

  • Newbie
  • *
  • Posts: 15
Re: 2.0.7dev performance
« Reply #20 on: June 04, 2010, 12:01:40 pm »
Yes I checked that post and tried that attribute, but it didn't work, my Asul objects still need that filter to work...

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #21 on: June 12, 2010, 12:56:09 pm »
Can you post some minimalistic ASUL definition that can be used to reproduce the effect?
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

ismaelj

  • Newbie
  • *
  • Posts: 15
Re: 2.0.7dev performance
« Reply #22 on: June 14, 2010, 06:47:27 pm »

I've streamlined my code to a basic example:

Code: (xml)
  1. <togglebutton id="btnormal" style="tabbutton1">
  2.   <text value="label 1" style="tblabel" background="color(0xa1b32d)"/>
  3. <button name="$btn_normal$" title="Test off" style="btn_normal" >
  4. <box name="$up$"/>
  5. <box name="$over$" style="over"/>
  6. <box name="$down$" style="down"/>
  7. </button>
  8. <button name="$btn_toggled$" title="Test on" style="btn_toggled" >
  9. <box name="$up$"/>
  10. <box name="$over$" style="over"/>
  11. <box name="$down$" style="down"/>
  12. </button>
  13. </togglebutton>
  14.  

Problem is: you put this code on a single page with or without the <text/> tag and it works right

But if you put it on a spreadpage with the <text> tag then the pink background appears when you mouseover the togglebuttom.  Remove the <text> tag and everything works.

Tu put the Asul on the page I use a custom AsulElement element that just uses megazine.asulFactory.createAsulObjectById(id) to load the asul component, like this:

Code: (xml)
  1.      <spreadpage anchor="intro">
  2.        <txt top="10" left="100" >
  3.           <content>spreadpage</content>
  4.        </txt>
  5.        <AsulElement top="10" left="10" width="500" height="100" asulid="btnormal"/>
  6.      </spreadpage>
  7.  

Hope this helps to solve the bug!

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #23 on: June 19, 2010, 06:04:16 pm »
Thanks, that did indeed help! I think it's all fixed now. Was an issue of masking / opaqueBackground incompatibility with weird side effects (that being the mask being rendered).

Also, I liked the idea with the ASUL as page elements, so I added <asulobject> as a page element (which does pretty much what yours does, just added that it's also possible to directly define XML in a <asulxml> childnode).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

ismaelj

  • Newbie
  • *
  • Posts: 15
Re: 2.0.7dev performance
« Reply #24 on: June 21, 2010, 04:22:50 pm »
Perfect! Now it works right!
I'm glad you liked my <asulelement>! Integrated in the engine will be better for sure!