Hollywood 7.1 very slow to compare at hollywood 7.0

Discuss any general programming issues here
Post Reply
sinisrus
Posts: 222
Joined: Tue Apr 21, 2015 5:43 pm

Hollywood 7.1 very slow to compare at hollywood 7.0

Post by sinisrus » Sat Mar 03, 2018 12:29 pm

Hello,

I test hollywood 7.1 is it very slower to compare at hollywood 7.0 do you have a solution?

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Hollywood 7.1 very slow to compare at hollywood 7.0

Post by airsoftsoftwair » Sat Mar 03, 2018 1:00 pm

It shouldn't be slower. Do you have a test script?

sinisrus
Posts: 222
Joined: Tue Apr 21, 2015 5:43 pm

Re: Hollywood 7.1 very slow to compare at hollywood 7.0

Post by sinisrus » Wed Mar 07, 2018 12:34 pm

Ok i solved the problem > Function BOX() is slow now with Hollywood7.1 (if box() is too big > no problem with hollywood7.0)

.hws

Code: Select all

/* Created with BuildOther v1.0 */
/* By Sinisrus © 2014 */

@VERSION 5,2
@REQUIRE "MUIRoyale"

@DISPLAY 1, {Hidden=True,COLOR=$5D5D5D,WIDTH=640,HEIGHT=480} ; Rendu du projet
BeginDoubleBuffer(True)

BrushEmpty=CreateBrush(NIL,640,480,#BLACK, {AlphaChannel = True, Clear=True})


Function p_DrawThumbs()
    StartX=EndX
    StartY=EndY
    EndX=MouseX()
    EndY=MouseY()

    SelectBrush(BrushEmpty,#SELMODE_COMBO,2)
    Line(StartX,StartY,EndX,EndY,#WHITE)
    EndSelect

    CLS($505050)    
    DisplayBrush(BrushEmpty,#CENTER,#CENTER)

    SetFillStyle(#FILLNONE)
    BOX(0,0,7680,7680,#BLACK) ;<=BOX(() ralenti le script

    Flip()
EndFunction


Function  p_EventFunc(msg)

    Switch msg.action
    Case "MUIRoyale":
        Switch msg.attribute
        Case "CloseRequest":
          END

        EndSwitch

    Case "HideWindow":
        mui.Set("app", "iconified", True)

    Case "ShowWindow":
        mui.Set("app", "iconified", False)

    EndSwitch

EndFunction

 

Function p_MoveXY(msg)
p_DrawThumbs()
EndFunction

IntervalDessin=SetInterval(NIL, p_MoveXY, 1000/100) ; 20fps

 

; dynamically create MUI GUI from an external *.xml file definition
mui.CreateGUI(FileToString("Test.xml"))

; listen to these events!
InstallEventHandler({MUIRoyale = p_EventFunc, HideWindow = p_EventFunc, ShowWindow = p_EventFunc})

 

EscapeQuit(True)

/* Boucle infinie */
Repeat
        WaitEvent
Forever
.xml

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app" base="NOUVEAU">
  <window id="win1" width="640" height="480" title="Nouveau" notify="closerequest" sizegadget="True">
    <vgroup spacing="0" innertop="0" innerleft="0" innerright="0" innerbottom="0">

            <vgroup spacing="0" innertop="1" innerleft="1" innerright="1" innerbottom="1">              
                <hgroup spacing="0">
                <hollywood id="id_display" display="1" minwidth="32" minheight="32" maxwidth="16384" maxheight="16384" innertop="0" innerleft="0" innerright="0" innerbottom="0"/>
                </hgroup>
            </vgroup>

    </vgroup> 
  </window>

</application>

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Hollywood 7.1 very slow to compare at hollywood 7.0

Post by airsoftsoftwair » Sun Mar 11, 2018 11:12 pm

Might be related to this because it's also about Box().

Post Reply