cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-560242%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%E5%85%81%E8%A8%B1FrameBox%E9%80%B2%E8%A1%8C%E5%BB%B6%E9%81%B2%E6%B8%B2%E6%9F%93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-560242%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%E5%A6%82%E6%9E%9C%20JMP%20%E5%85%81%E8%A8%B1%E6%A1%86%E6%9E%B6%E7%9B%92%E5%85%B7%E6%9C%89%E6%8E%A1%E6%A8%A3%E4%BF%9D%E6%8C%81%E9%A1%9E%E5%9E%8B%E7%9A%84%E9%A1%AF%E7%A4%BA%EF%BC%8C%E9%82%A3%E5%B0%B1%3CSTRONG%3E%E5%A4%AA%E5%A5%BD%E4%BA%86%3C%2FSTRONG%3E%E3%80%82%E5%85%B7%E9%AB%94%E4%BE%86%E8%AA%AA%EF%BC%8C%E5%AE%83%E5%80%91%E6%87%89%E8%A9%B2%E6%B8%B2%E6%9F%93%E4%B8%80%E6%AC%A1%EF%BC%8C%E4%B8%A6%E4%B8%94%E5%83%85%E9%87%9D%E5%B0%8D%E8%AA%BF%E6%95%B4%E5%A4%A7%E5%B0%8F%E4%BA%8B%E4%BB%B6%E3%80%81%E8%A1%8C%E7%8B%80%E6%85%8B%E6%9B%B4%E6%94%B9%EF%BC%88%E5%B0%8D%E6%96%BC%E9%80%A3%E7%B5%90%E5%88%B0%E8%A1%A8%E7%9A%84%E8%A1%8C%E7%8B%80%E6%85%8B%E7%9A%84%E4%BB%BB%E4%BD%95%E6%A8%99%E8%A8%98%E6%AE%B5%EF%BC%89%E6%88%96%E9%80%8F%E9%81%8E%E7%99%BC%E9%80%81%20%26lt%3B%20%3CINVAL%20or%3D%22%22%3E%26lt%3B%3CDIRTY%20message.%3D%22%22%3E%26lt%3B%26gt%3B%3C%2FD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EF%BC%8C%E4%BD%86%E6%AF%8F%E5%80%8B%E6%BB%BE%E5%8B%95%E4%BA%8B%E4%BB%B6%E9%83%BD%E9%9C%80%E8%A6%81%E5%A4%9A%E7%A7%92%E9%90%98%E7%9A%84%E6%B8%B2%E6%9F%93%E6%98%AF%E4%B8%8D%E5%8F%AF%E6%8E%A5%E5%8F%97%E7%9A%84--%20%E5%83%85%E6%B8%B2%E6%9F%93%E4%B8%80%E6%AC%A1%EF%BC%8C%E4%B8%A6%E5%9C%A8%E6%BB%BE%E5%8B%95%E6%99%82%E5%9C%A8%E4%B8%8D%E5%90%8C%E4%BD%8D%E7%BD%AE%E9%87%8D%E6%96%B0%E7%B9%AA%E8%A3%BD%E4%BD%8D%E5%9C%96%E3%80%82%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%E6%B3%A8%E6%84%8F%EF%BC%9A%E5%A6%82%E6%9E%9C%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1%E6%93%94%E5%BF%83%E5%9C%A8%20RAM%20%E4%B8%AD%E4%BF%9D%E5%AD%98%E4%BD%8D%E5%9C%96%E7%9A%84%E8%A8%98%E6%86%B6%E9%AB%94%E6%B6%88%E8%80%97%E2%80%94%E2%80%94%E8%AB%8B%E4%B8%8D%E8%A6%81%E6%93%94%E5%BF%83%E3%80%82%E8%AE%93%E7%94%A8%E6%88%B6%E5%9C%A8%E8%A8%AD%E7%BD%AE%E7%9B%92%E5%AD%90%E6%99%82%E6%93%94%E5%BF%83%E9%80%99%E4%B8%80%E9%BB%9E%E3%80%82%E4%BE%8B%E5%A6%82%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%88%91%E5%98%97%E8%A9%A6%E5%89%B5%E5%BB%BA%E4%B8%80%E5%80%8B%E9%9C%80%E8%A6%81%E6%B8%B2%E6%9F%93%201%2C000%2C000%2C000%20x%201%2C000%2C000%2C000%20%E5%83%8F%E7%B4%A0%E7%9A%84%E7%B9%AA%E5%9C%96%EF%BC%8C%E9%82%A3%E9%BA%BC%E8%AE%93%E6%88%91%E5%98%97%E8%A9%A6%E4%B8%80%E4%B8%8B%EF%BC%8C%E7%84%B6%E5%BE%8C%20JMP%20%E5%B0%B1%E6%9C%83%E5%B4%A9%E6%BD%B0%E3%80%82%E6%82%A8%E4%B8%8D%E6%87%89%E8%A9%B2%E5%83%85%E5%83%85%E5%9B%A0%E7%82%BA%E5%AE%83%E5%8F%AF%E8%83%BD%E6%9C%83%E8%AE%93%E6%88%91%E5%80%91%E5%9C%A8%E6%84%9A%E8%A0%A2%E7%9A%84%E6%83%85%E6%B3%81%E4%B8%8B%E4%BD%BF%20JMP%20%E5%B4%A9%E6%BD%B0%E8%80%8C%E9%98%BB%E6%AD%A2%E6%88%91%E5%80%91%E6%93%81%E6%9C%89%E5%BF%85%E8%A6%81%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%E5%83%85%E5%85%81%E8%A8%B1%E9%81%B8%E6%93%87%E5%8A%A0%E5%85%A5%EF%BC%88%E5%8D%B3%E5%83%85%E9%80%8F%E9%81%8E%E5%91%BC%E5%8F%AB%20%26lt%3B%20%3CLAZY%20method%3D%22%22%20will%3D%22%22%20this%3D%22%22%20new%3D%22%22%20feature%3D%22%22%20be%3D%22%22%20invoked%3D%22%22%3E%3C%2FLAZY%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%E9%87%8D%E7%94%B3%E4%B8%80%E4%B8%8B%EF%BC%8C%E5%A6%82%E6%9E%9C%20FrameBox%20%E6%9C%89%E4%B8%80%E5%80%8B%E6%96%B9%E6%B3%95%EF%BC%88%E4%BE%8B%E5%A6%82%20%26lt%3B%20%3CLAZY%3E%3C%2FLAZY%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E7%95%B6%E5%89%8D%E4%B8%8D%E8%89%AF%E8%A1%8C%E7%82%BA%E7%9A%84%E7%AF%84%E4%BE%8B%20-%20%E6%95%B8%E5%AD%97%E8%A2%AB%E5%A4%9A%E6%AC%A1%E5%88%97%E5%8D%B0%EF%BC%8C%E8%A1%A8%E6%98%8E%E6%AF%8F%E5%80%8B%E6%BB%BE%E5%8B%95%E4%BA%8B%E4%BB%B6%E9%83%BD%E6%9C%83%E7%99%BC%E7%94%9F%E6%B8%B2%E6%9F%93%E9%80%9A%E9%81%93%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0ANew%20Window(%20%22Test%22%2C%0A%09V%20Scroll%20Box(%0A%09%09vlb%20%3D%20V%20List%20Box()%0A%09)%0A)%3B%0A%0AFor(%20i%20%3D%201%2C%20i%20%26lt%3B%3D%20100%2C%20i%2B%2B%2C%0A%09Eval(%20Eval%20Expr(%0A%09vlb%20%26lt%3B%26lt%3B%20Append(%0A%09%09Graph%20Box(%0A%09%09%09X%20Scale(%200%2C%201%20)%2C%0A%09%09%09Y%20Scale(%200%2C%201%20)%2C%0A%09%09%09Pen%20Color(%20%22Blue%22%20)%3B%0A%09%09%09Line(%20%5B1%200%5D%2C%20%5B0%201%5D%20)%3B%0A%09%09%09Print(%20Expr(%20i%20)%20)%0A%09%09)%0A%09)%0A%09)%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E8%88%87%E2%80%9C%E6%AF%8F%E6%AC%A1%E6%BB%BE%E5%8B%95%E4%BA%8B%E4%BB%B6%E9%87%8D%E6%96%B0%E6%B8%B2%E6%9F%93%E2%80%9D%2F%E2%80%9C%E5%9C%A8%E6%AF%8F%E5%80%8B%E5%8F%AF%E8%83%BD%E7%9A%84%E6%A9%9F%E6%9C%83%E9%87%8D%E6%96%B0%E6%B8%B2%E6%9F%93%E2%80%9D%E7%9B%B8%E9%97%9C%E7%9A%84%E4%B8%8D%E5%8F%AF%E6%8E%A5%E5%8F%97%E7%9A%84%E7%AD%89%E5%BE%85%E6%99%82%E9%96%93%E7%9A%84%E7%A4%BA%E4%BE%8B%EF%BC%88%E5%8F%AA%E9%9C%80%E5%98%97%E8%A9%A6%E5%9C%A8%E6%AD%A4%E8%99%95%E6%BB%BE%E5%8B%95...%EF%BC%89%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0Ans%20%3D%20New%20Namespace()%3B%0Ans%3Atable%20%3D%20New%20Table(%20%22TEST%22%2C%0A%09New%20Column(%20%22X%22%2C%20%22Numeric%22%2C%20%26lt%3B%3CFORMULA%3E%3C%2FFORMULA%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FCODE%3E%3C%2FLINGO-BODY%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CLINGO-LABS%20id%3D%22lingo-labs-560242%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%95%B8%E6%93%9A%E6%8E%A2%E7%B4%A2%E5%92%8C%E8%A6%96%E8%A6%BA%E5%8C%96%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FCODE%3E%3CLINGO-SUB%20id%3D%22lingo-sub-565096%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%85%81%E8%A8%B1%20FrameBox%20%E9%80%B2%E8%A1%8C%E5%BB%B6%E9%81%B2%E6%B8%B2%E6%9F%93%20-%20%E7%8B%80%E6%85%8B%E6%9B%B4%E6%94%B9%E7%82%BA%EF%BC%9A%E5%B7%B2%E7%A2%BA%E8%AA%8D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-565096%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F26363%22%20target%3D%22_blank%22%3E%40ErraticAttack%3C%2FA%3E%20%EF%BC%8C%20%E8%AC%9D%E8%AC%9D%E4%BD%A0%E7%9A%84%E5%BB%BA%E8%AD%B0%EF%BC%81%20%E6%88%91%E5%80%91%E5%B7%B2%E8%A8%98%E9%8C%84%E6%82%A8%E7%9A%84%E8%AB%8B%E6%B1%82%EF%BC%8C%E4%B8%A6%E5%B0%87%E4%BA%88%E4%BB%A5%E8%80%83%E6%85%AE%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-576207%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%85%81%E8%A8%B1%20FrameBox%20%E9%80%B2%E8%A1%8C%E6%83%B0%E6%80%A7%E6%B8%B2%E6%9F%93%20-%20%E7%8B%80%E6%85%8B%E6%9B%B4%E6%94%B9%E7%82%BA%EF%BC%9A%E6%AD%A3%E5%9C%A8%E8%AA%BF%E6%9F%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-576207%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-620410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%85%81%E8%A8%B1%20FrameBox%20%E9%80%B2%E8%A1%8C%E6%83%B0%E6%80%A7%E6%B8%B2%E6%9F%93%20-%20%E7%8B%80%E6%85%8B%E6%9B%B4%E6%94%B9%E7%82%BA%EF%BC%9A%E6%88%91%E5%80%91%E5%96%9C%E6%AD%A1%E5%AE%83%EF%BC%81%20%EF%BC%88%E5%9C%A8%E9%9A%8A%E5%88%97%E4%B8%AD%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-620410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Allow FrameBox to have lazy Rendering

It would be exceptionally great if JMP would allow frame boxes to have a sample-and-hold type of display.  Specifically, they should be rendered once and only re-rendered for such things as resize events, row-state changes (for any marker seg's that are linked to a table's row-state) or by sending the <<Inval or <<Dirty message.

 

What I'd like to see is for the below example script to not print any number more than once while scrolling -- during the initial render and that's it (this would also apply to marker segs if present).

 

The main reason for this is that if I'm plotting many graphs with millions of data points, I don't mind waiting several seconds for the initial render (that is expected) but it is unacceptable that every scroll event requires multiple seconds of rendering -- render only once and just repaint the bitmap at a different location when scrolling.

 

NOTE:  If the devs are worried about the memory consumption of holding bitmaps in ram -- DO NOT WORRY.  Let the user worry about that when setting up the boxes.  For example, if I try to create a plot that would be 1,000,000,000 x 1,000,000,000 pixels to render then let me attempt it and crash JMP.  You shouldn't prevent us from having the necessary feature simply for the reason that it might allow us to crash JMP under stupid circumstances.  Allow it to be opt-in only (i.e., only by calling the  <<Lazy method will this new feature be invoked).

 

Just to reiterate, it would be great if a FrameBox had a method (such as <<Lazy) that would do the absolute minimum number of renders possible to keep the painted bitmap current and no more -- thus allowing scrolling to be fluid and fast for FrameBoxes with either very complicated Graphics Scripts or millions of data points or both.

 

Here is an example of the bad behavior currently -- the numbers are printed multiple times indicating that the rendering pass happens each scroll event:

 

Names Default to Here( 1 );
New Window( "Test",
	V Scroll Box(
		vlb = V List Box()
	)
);

For( i = 1, i <= 100, i++,
	Eval( Eval Expr(
	vlb << Append(
		Graph Box(
			X Scale( 0, 1 ),
			Y Scale( 0, 1 ),
			Pen Color( "Blue" );
			Line( [1 0], [0 1] );
			Print( Expr( i ) )
		)
	)
	) )
)

 

 

Here is an example of the unacceptable wait-time associated with this "re-render-at-every-scroll-event" / "re-render at every possible opportunity" (just try scrolling through here...)

 

Names Default to Here( 1 );
ns = New Namespace();
ns:table = New Table( "TEST",
	New Column( "X", "Numeric", <<Formula( Random Normal() ) ),
	New Column( "Y", "Numeric", <<Formula( Random Normal() ) ),
	<<Add Rows( 100000 )
);
ns:func = Function( {_i},
	Print( _i )
);

Eval( Eval Expr(
New Window( "Test",
	<<On Close(
		ns = Namespace( Expr( ns << Get Name ) );
		Close( ns:table, No Save );
		ns << Delete Namespace;
	)
,
	V Scroll Box(
		vlb = V List Box()
	)
)
) );

For( i = 1, i <= 100, i++,
	Eval( Eval Expr(
	vlb << Append(
		box = Outline Box( "",
			Graph Box(
				Frame Size( 300, 300 ),
				Y Scale( -3, 3 ),
				X Scale( -3, 3 ),
				Marker Seg( Expr( ns:table:X << Get Values ), Expr( ns:table:Y << Get Values ), Row States( Expr( ns:table ) ) );
			)
		)
	);
	seg = box[Frame Box( 1 )] << Find Seg( "Marker Seg" );
	seg << Transparency( 0.4 );
	box[Frame Box( 1 )] << Add Graphics Script(
		Local( {ns = Namespace( Expr( ns << Get Name ) )},
			ns:func( Expr( i ) )
		)
	);
	) );
)

 

 

 

3 Comments
Status changed to: Acknowledged

Hi @ErraticAttack, thank you for your suggestion! We have captured your request and will take it under consideration.

mia_stephens
Staff
Status changed to: Investigating
 
mia_stephens
Staff
Status changed to: We like it! (in the queue)