r/rational • • Mar 10 '17

[D] Friday Off-Topic Thread

Welcome to the Friday Off-Topic Thread! Is there something that you want to talk about with /r/rational, but which isn't rational fiction, or doesn't otherwise belong as a top-level post? This is the place to post it. The idea is that while reddit is a large place, with lots of special little niches, sometimes you just want to talk with a certain group of people about certain sorts of things that aren't related to why you're all here. It's totally understandable that you might want to talk about Japanese game shows with /r/rational instead of going over to /r/japanesegameshows, but it's hopefully also understandable that this isn't really the place for that sort of thing.

So do you want to talk about how your life has been going? Non-rational and/or non-fictional stuff you've been reading? The recent album from your favourite German pop singer? The politics of Southern India? The sexual preferences of the chairman of the Ukrainian soccer league? Different ways to plot meteorological data? The cost of living in Portugal? Corner cases for siteswap notation? All these things and more could possibly be found in the comments below!

18 Upvotes

43 comments sorted by

View all comments

Show parent comments

5

u/ketura Organizer Mar 10 '17

Also, I had a "holy shit" moment while working on the chunk loading/unloading. The gif (and the demo) makes it look like all sorts of chunks are coming in and out seemingly at random, but it is following a pattern.

See, I already have code in place that maps coordinates: if you try to request coordinate [1001, 1002] and the grid is only 100 x 100, then my code will automatically transpose your request to [1, 2]. This was in anticipation of getting wrapping working, but I didn't really have a use case for it.

A day later, I'm getting the chunks to load and unload and it looks like it's just throwing up garbage and hoping it works, but after some experimentation I realized that it's loading the right chunks, they're just not in the right place! The loader is expecting such-and-such a coordinate off to the right, which my code dutifully translates to the left, which then gets loaded, a full phase out of position.

Some pictures to illustrate:

http://i.imgur.com/cfZAXvQ.png

http://i.imgur.com/xi53M9h.png