Off-screen Rendering Followup

9 views
Skip to first unread message

pixel...@gmail.com

unread,
Oct 1, 2025, 1:09:54 AMOct 1
to Medley Interlisp core
Hello All,

Yesterday we talked about using offscreen rendering to speed up my game project.
I thought it would be a matter of just creating a bitmap as a buffer and then blitting that bitmap to the display stream of the window once per update.

I've noticed the graphics operations like DRAWLINE and friends want a display stream rather than a bitmap. I've seen examples of manually editing bitmaps in the bitmap editor tool but I want to procedural generate the shapes and such onto my bitmap in game when the window changes size and the buttons therefore need to change size as well.

So, do I need to actually implement my own drawing routines from scratch for BITMAP types (DRAWLINE, DRAWPOLYGON etc)?

Or did I misunderstand the notion of drawing offscreen then updating my game window?

PS: Tomorrow is one of the Wednesday meetings I'll have to miss due to an existing biweekly Wednesday appointment I have.

Thanks for the insight!
- Ryan Burnside

Nick Briggs

unread,
Oct 1, 2025, 1:39:05 AMOct 1
to pixel...@gmail.com, Lisp Core
Hi Ryan --

You can (DSPCREATE <yourbitmap>) to wrap a display stream around it, and use the result of that for your drawing, and then BITBLT the bitmap that you drew into to wherever you need it.

-- Nick


--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lispcore/45b46d3b-ee80-4b4b-837f-ea94ccff360dn%40googlegroups.com.

pixel...@gmail.com

unread,
Oct 1, 2025, 2:07:57 AMOct 1
to Medley Interlisp core

Excellent - Thanks Nick.

I'll give that a try tomorrow.

At some point it might be good to tuck that kind of thing in a "cookbook" for common Medley idioms.

pixel...@gmail.com

unread,
Oct 1, 2025, 11:30:03 PMOct 1
to Medley Interlisp core

It's looking pretty good, this will work - thanks!
Screenshot_20251001_212858.png
Reply all
Reply to author
Forward
0 new messages