Page 1 of 1

Subrenderer frequency?

Posted: Sat Jan 06, 2024 1:27 am
by kaypy
The docs on the wiki imply a subrenderer would be called 6 times a second.

In actual use, it seems that a subrenderer will be called much faster for an item looked at via the eye than if put in the hand. Is this intended?

(I had thought I could use that 6 times a second for some idle activity, but looking with the eye turbocharges it. I'm guessing every instant of eye hold is considered an event or something. I guess I should do things properly with messages)

Re: Subrenderer frequency?

Posted: Sat Jan 06, 2024 7:50 pm
by Sophia
Yes, you should use messages for timing.

The rate that subrenderers update is not part of the DSB "specification" and, as you have seen, it can do some inconsistent things. It is also possible it will change in some future version. I've updated the wiki to be more correct.

(As an aside, DSB ticks 5 times per second, not 6)

Re: Subrenderer frequency?

Posted: Sun Jan 07, 2024 1:19 am
by kaypy
I knew messages were the proper way to do it, and I got things working pretty quickly once I stopped being lazy 8-)

But I figured I should find out the way it should behave and update the wiki. Now I get to be lazy there instead 8-)

Re: Subrenderer frequency?

Posted: Sun Jan 07, 2024 9:58 am
by Gambit37
I'm truly fascinated to see what you've been working on all this time @kaypy... Any teasers? :-)

Re: Subrenderer frequency?

Posted: Sun Jan 07, 2024 1:17 pm
by kaypy
After one too many "this was technically solvable but there was a key under a trash pile about 5 levels ago you missed so now you're stuck", the overall plan is I'm looking at implementing an Oracle for that random dungeon generator I have.

My concept is a small permanent hit to a given character's stats per hint, with a bunch of hints available for a given obstacle:

"
The door is opened by a gold keyhole nearby to the west.

You need an engraved brass crossbar key.

The key is carried by a giggler on the northeast of level four.
"

So what I was looking at in detail at the moment was being able to display a bunch of text like that at once. So I have made a scroll that scrolls.

Re: Subrenderer frequency?

Posted: Sun Jan 07, 2024 4:15 pm
by Gambit37
That sounds awesome! Looking forwards to seeing it :-)