It is true that the tick rate is 20 hz, but unless you want to work with 0 tick redstone f*ckery everywhere for transmission, in that 1 tick, a redstone signal can only travel 16 blocks distance, since every repeater will at minimum add a 1 tick delay. In minecraft, that means that within 1 clock cycle, a change in redstone signal from 0 to 1 must be able to reach, from every possible source to every of its possible targets. This is not instant due to afforementioned light speed delay, resistance and capacitance of the scilicon, switch time of your source, etc. In the real world, that means that with light speed delays and resistance etc., if you started at 0 Volts for a 0 at a source at the beginning of a clock interval, and want to send a 1, your voltage needs to rise to a level that is recognised as 1 in stead of 0 (so over some threshold) at whatever the destination if your signal is. In 1 interval of your clock, any signal that you have started to send from a source, must have fully reached it's destination. This is pretty analogous to the reasons why we don’t drive real transistors to their theoretical “max,” as described by the person you’re responding to. So, we use a slower clock than is “technically” possible because of the “physical” constraints imposed by the game logic (inherent delays in the redstone components), and by the performance ramifications of driving the clock too high (missed frames can lead to incorrect/undefined behavior, or at the very least be very unplayable). There is also a real game-performance cost once you start scaling these redstone computers up, dropping your tick rate from the target 20HZ (10HZ for redstone). Moreover, I believe individual redstone components can’t respond to stimuli “instantly,” similar to the real-life physical constraints you mention. While Minecraft targets 20 ticks per second, it’s a) not a fixed simulation, as you allude to - it depends on the capabilities/environment of the hardware and b) the redstone tick frequency is half the base update frequency. The “external clock signal” you describe here for real processors is analogous to the in-game clock used here. Are you interested in promoting your own content? STOP! Read this first.For posting job listings, please visit /r/forhire or /r/jobbit.Do you have something funny to share with fellow programmers? Please take it to /r/ProgrammerHumor/.Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or Stack Overflow.Direct links to app demos (unrelated to programming) will be removed.If there is no code in your link, it probably doesn't belong here. Just because it has a computer in it doesn't make it programming.That means no image posts, no memes, no politics.Please keep submissions on topic and of high quality.r/programming is a reddit for discussion and news about computer programming
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |