Jump to content

Progress bar on 0.9.5 Ultra Engine


Yue
 Share

Recommended Posts

Progress bar blinks when filling when changing the value from 0 to 1 in a loop.

image.thumb.png.285f8accef6bad4a01a7f90c476ebafd.png

 

function this:Update(window,input)
        while (PeekEvent()) do
            local ev = WaitEvent()
            if (ev.id == EVENT_WINDOWCLOSE and ev.source == window:Get()) then
                return("Exit")
            else
                me.ui:ProcessEvent(ev)
            end
        end
        if me.x < 1.0 then 
            me.x = me.x + 0.001
        else
            me.x = 1.0
            input:FlushKeys()
        end
        me.bar:SetProgress(me.x)

    end

 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

  • 2 weeks later...

I think this occurs because of the asynchronous culling system. If I implement GPU culling this problem will be automatically fixed.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...