
squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2018
08:42 AM
roScreen on Ultra
on other devices:
roscreen.drawsomething()
roscreen.swapbuffers()
will cause drawsomething to be drawn on top of the not-cleared screen.
On the Ultra i'm seeing it clear the screen as if screen.clear() had been called, when it has not.
4640X - 8.01.4042-29
roscreen.drawsomething()
roscreen.swapbuffers()
will cause drawsomething to be drawn on top of the not-cleared screen.
On the Ultra i'm seeing it clear the screen as if screen.clear() had been called, when it has not.
4640X - 8.01.4042-29
Kinetics Screensavers
3 REPLIES 3
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2018
01:44 AM
Re: roScreen on Ultra
please don't make any assumptions regarding the status of the drawing buffer after calling .swapBuffers(), it is "dirty" and you should .clear() it before drawing to it (or copy a full-screen background image).
Depending on hardware, some models re-use a previous frame drawing buffer w/o clearing it - where others start a brand new one (since that's faster for the GPU they have). You can make it rule of thumb - when you do .swapBuffers(), immediately follow with .clear()
Depending on hardware, some models re-use a previous frame drawing buffer w/o clearing it - where others start a brand new one (since that's faster for the GPU they have). You can make it rule of thumb - when you do .swapBuffers(), immediately follow with .clear()

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2018
08:10 AM
Re: roScreen on Ultra
"RokuNB" wrote:
Depending on hardware, some models re-use a previous frame drawing buffer w/o clearing it - where others start a brand new one (since that's faster for the GPU they have).
Sure 'nuf. Thank you.
Kinetics Screensavers

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2018
07:07 AM
Re: roScreen on Ultra
I have been doing my screen.clear() on the next cycle, before the next draw stuff and screen.swapbuffers()
FUNCTION drawStuff(gS AS INTEGER, screen, mainRCC, cmpz, cmpz2, hudC, mapC, hitBC1, hitBC2)
IF m.mAA.doLMap THEN updateLMapPlayer() ELSE spriteManage()
checkMonStep(gS)
screen.Clear(&h000000FF)
drawStuffMulti(gS, screen, mainRCC, cmpz, cmpz2, hudC, mapC, hitBC1, hitBC2)
screen.SwapBuffers()
END FUNCTION