Your Digital Media Has Never Looked So Good

 
User avatar
Komag
Topic Author
Posts: 808
Joined: Fri Aug 22, 2014 3:42 am

bitmapset.ticklist ? What is it?

Wed Oct 19, 2016 7:59 pm

I'm diving deeper into my understand of how sprite animations work. I'm setting SetTime() for my sprite regions. Then using AnimationTick() on the compositors. But what is the .ticklist, as in bitmapset.ticklist? It always seems to be an empty array.

I can't find any documentation or mention of this on the Forums or anywhere else - is there some info I'm missing?
 
User avatar
Komag
Topic Author
Posts: 808
Joined: Fri Aug 22, 2014 3:42 am

Re: bitmapset.ticklist ? What is it?

Fri Oct 21, 2016 5:49 pm

I've tried breaking into the game at various points, and always I find an empty ticklist array. Might it be used very very briefly under-the-hood somehow?

It SOUNDS like some sort of counter for the AnimationTick()s we do to compositors, but that's just a wild guess.
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: bitmapset.ticklist ? What is it?

Fri Oct 21, 2016 10:05 pm

No clue what you are talking about. Is it about the "v30/bslDefender.brs" thing i have never used?
If so, why don't you look at its source code?
 
User avatar
Komag
Topic Author
Posts: 808
Joined: Fri Aug 22, 2014 3:42 am

Re: bitmapset.ticklist ? What is it?

Sat Oct 22, 2016 2:50 pm

I just spend about 15 minutes searching for that without any luck, where can I find it?
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: bitmapset.ticklist ? What is it?

Sat Oct 22, 2016 4:06 pm

Komag wrote:
I just spend about 15 minutes searching for that without any luck, where can I find it?

You'll have to "brave the Leopard" for that one (to borrow from RokuKC). 
Source is exhibited in Co's display department. So go to the console cellar with a `ListDir()` torch and look for a disused "common:/" lavatory "LibCore/" and in a filing cabinet labeled "v30/" you'll find that "bslDefender.brs". Does that make you feel more like Indiana Jones or like Arthur Dent? 
Last edited by EnTerr on Sat Oct 22, 2016 9:45 pm, edited 1 time in total.
 
User avatar
Komag
Topic Author
Posts: 808
Joined: Fri Aug 22, 2014 3:42 am

Re: bitmapset.ticklist ? What is it?

Sat Oct 22, 2016 7:02 pm

Thanks, I've learned a couple things in there! (But not anything about TickList, sadly)
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: bitmapset.ticklist ? What is it?

Sat Oct 22, 2016 10:39 pm

Komag wrote:
Thanks, I've learned a couple things in there! (But not anything about TickList, sadly)

Actually, I suspect you did, without realizing it.  TickList is defined as an empty array in this line:
set = { ExtraInfo: {}, Backgrounds: {}, Regions: {}, Animations: {}, TickList: [] }

but is never populated, nor accessed anywhere else in the code.  So, the answer to your question is quite simply, it's an empty array that serves no purpose.  Perhaps at one time they considered supporting defining animation ticks in the BitmapSet XML, but never got around to implementing it.

With that said, this line doesn't instill any confidence that they'll be adding support anytime soon...
' Aug 23, 2010

FWIW, I can honestly say, in the countless 2D API apps I've written, I've never found a need to use bslDefender.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)

Who is online

Users browsing this forum: No registered users and 11 guests