You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1Often the appearance of a lookup table was caused by a simple, cyclic algorithm; a lookup table would take up much too much space!wizzwizz4– wizzwizz4 ♦2017-02-06 17:46:54 +00:00Commented Feb 6, 2017 at 17:46
-
@wizzwizz4 No, 256-byte lookup tables were quite common. Any decent PRNG takes more (about 2-3 kiB for MT). You're not suggesting you'd waste precious CPU cycles on something as insignificant as the illusion of randomness, are you? :D Both approaches were used, each in their own niche. Mind you, Doom was already written for computers that had a couple megabytes of memory - 256 bytes were quite a good trade-off for the cheap pseudo-randomness. But lookup tables were used even on old mainframes, if you didn't need something too special.Luaan– Luaan2017-02-06 22:42:09 +00:00Commented Feb 6, 2017 at 22:42
-
What retro computing platform were you using that had a CPU cache?Mark Ransom– Mark Ransom2017-02-09 23:20:41 +00:00Commented Feb 9, 2017 at 23:20
-
@MarkRansom Anything that had the CPU faster than memory. And of course, where the memory was faster than the CPU, lookup tables were just as effective. IBM 360, anything based on 68k and of course 386+ (Doom is the example I used). I think we've had plenty of discussions on RC about what exactly "retro computing" means :)Luaan– Luaan2017-02-10 08:13:19 +00:00Commented Feb 10, 2017 at 8:13
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="/api/flow.js?q=https%3A%2F%2Fexample.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. ms-dos), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you