This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-01-16 16:19:48

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Frames are rendered before code is fully executed Offline.

This is one that's been bugging me for a LONG time, and you can REALLY notice it in pen projects, and even some normal ones. Outside of presentation mode, but still online rendering is done before all of the code is executed, resulting in the user seeing an unfinished frame in pen projects and sensors etc in non-pen projects. Also, velocity movement looks stair-steppy because of this and because of the increasing number of games that use the pen this is becoming more of a problem.

I think you should just port the rendering system from Presentation mode into normal mode, as that seems to work fine in comparison (but for some reason works at half frame-rate)

Offline

 

#2 2010-01-17 05:35:34

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

Wait, WHAT? This is too weird. Although possible.


Converting my Scratch projects to Python!

Offline

 

#3 2010-01-17 08:20:40

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

*reads title* Welcome to Scratch!  lol

Wait, so this happens online, and in normal mode, but not presentation mode. Is that correct?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#4 2010-01-17 10:37:47

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

Lucario621 wrote:

*reads title* Welcome to Scratch!  lol

NICE.

Last edited by ThePCKid (2010-01-17 10:38:07)

Offline

 

#5 2010-01-17 15:08:44

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

Lucario621 wrote:

*reads title* Welcome to Scratch!  lol

Wait, so this happens online, and in normal mode, but not presentation mode. Is that correct?

This does not happen online. It's what makes One-S One-S projects flicker in normal mode.

Offline

 

#6 2010-01-17 15:47:03

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

RHY3756547 wrote:

Lucario621 wrote:

*reads title* Welcome to Scratch!  lol

Wait, so this happens online, and in normal mode, but not presentation mode. Is that correct?

This does not happen online. It's what makes One-S One-S projects flicker in normal mode.

Oh ok.

Well who cares about normal mode!


http://i.imgur.com/WBkM2QQ.png

Offline

 

#7 2010-01-18 05:26:45

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

With The-Whiz's 10-point mesh, I thought it so brilliant because I was viewing it online, where there isn't the 'flicker'. But when I downloaded it I saw my mistake.  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#8 2010-01-18 05:27:53

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

RHY3756547 wrote:

This does not happen online.

It happens to me...  sad


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#9 2010-01-18 05:41:14

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

Well i m toooo technical so here are my technical words

thecauseofproblem wrote:

Um RHY the thing u r seeing is very certain to happen .The code of both the presentationa nd normal renderer are the same but in the normal mode thier are scratch IDE display functions constantly running which slows scratch down so it dosent matter with programming.So i dont think it can be reduced untill They remove the programming which slows down scratch to make it equispeed on all computer systems(which it never does).

well now the solution RENDER in end well it will make programming even tougher do all calculations first then render like
set x 1to
set y1 to
set x3to
set x2 to
set y2 to
set y3 to

then for rendering
goto x1 y1
pendown
goto x2y2
goto x3 y3
penup.
AND OMG UR DONE WITH FAST PROCESSING BUT * SLOW PROGRAMMING

Jonathanpb wrote:

RHY3756547 wrote:

This does not happen online.

It happens to me...  sad

well the problem is due to scratchs speed difference it doesnt happens ol to me either and on my friends i7 extreme the half rendered image is shown for very less time literally 1/100th time from on my CPU but still HUMAN Brain can get it

Last edited by fanofcena (2010-01-18 05:43:11)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#10 2010-01-19 18:02:19

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Frames are rendered before code is fully executed Offline.

fanofcena wrote:

Well i m toooo technical so here are my technical words

thecauseofproblem wrote:

Um RHY the thing u r seeing is very certain to happen .The code of both the presentationa nd normal renderer are the same but in the normal mode thier are scratch IDE display functions constantly running which slows scratch down so it dosent matter with programming.So i dont think it can be reduced untill They remove the programming which slows down scratch to make it equispeed on all computer systems(which it never does).

well now the solution RENDER in end well it will make programming even tougher do all calculations first then render like
set x 1to
set y1 to
set x3to
set x2 to
set y2 to
set y3 to

then for rendering
goto x1 y1
pendown
goto x2y2
goto x3 y3
penup.
AND OMG UR DONE WITH FAST PROCESSING BUT * SLOW PROGRAMMING

Jonathanpb wrote:

RHY3756547 wrote:

This does not happen online.

It happens to me...  sad

well the problem is due to scratchs speed difference it doesnt happens ol to me either and on my friends i7 extreme the half rendered image is shown for very less time literally 1/100th time from on my CPU but still HUMAN Brain can get it

Noooooooooooooooooooooooooooooooooooooooooooo

I think the problem is that the renderer is out of sync with the debug application executer and instead runs synced with the code editor. I think it should unsync with the code editor when the game is running.

Also, Online NOTHING flickers because it doesn't have this problem. Even if you have a slow CPU it won't flicker online.

You can see this in LINE Tennis and when you download my Perfect platformer base (the sensing code makes mario jitter about)

Offline

 

Board footer