Skip to content

u/MagicBobert

In this archive from Dec 2010 to May 2015

4
posts
129
comments
2
media
518
score

Are you dual booting with Windows? Do you have Windows configured to use UTC hardware time? If not, switching between Windows and Arch will cause them to fight over who gets control of the hardware clock and it will appear to keep jumping timezones.

https://wiki.archlinux.org/index.php/Timezone#UTC_in_Windows

6 points

Move all the photons. In unoccupied cells, they leave a little bit of their color in a light buffer.

This is actually much more akin to volumetric ray marching in 3D than photon mapping. That's what's giving you the god rays, which you wouldn't get with straight photon mapping.

When you say the GPU version is realtime... what kind of realtime? Framerate? Hardware?

Neat effect, I like it!

7 points

What kind of router do you have? Many consumer routers have pretty small connection state tables, which work fine if you're just browsing the tubes, but torrenting can fill up the tables really fast with a ton of open connections. When that happens nothing can open a new connection until a slot in the table frees up, so web browsing and anything else that doesn't maintain a persistent connection has serious problems.

We ran into that situation a couple years ago when I lived in a house with 5 engineering students. We ended up replacing our Linksys with an ancient PC running Linux to do the routing and it worked wonders.

1 points

Desktop environments are basically what you traditionally think of as the graphical interface to your computer, along with all the associated programs that you think of as "part of the OS". Things like your graphical file manager, calculator, basic text editor... things like that.

A window manager is subset of a desktop environment, specifically the part which handles drawing multiple windows on the screen at once, moving them around, keeping them organized, etc.

I do most of my work in, and am fairly comfortable with, the command line. Because of that I don't actually run a desktop environment, just a window manager. Unless you are fairly comfortable with the command line, though, you might want a full desktop environment. As en4bz mentioned, Xfce is a good lightweight choice for something like the Pi.

As far as Pacman goes, this wiki article may be helpful to you coming from Ubuntu/Mint until you get comfortable with Pacman's syntax.

2 points

So, I should clarify. Main memory and the memory of any peripherals connected to the system don't inherently share the same address space unless the OS or a driver intentionally maps a chunk their address space into main memory's address space.

Speaking specifically for video cards, the OS or video driver may indeed map a chunk of VRAM into the system's address space, but it doesn't inherently happen. It's something that the OS or a driver has to explicitly do.

Take a look at CUDA or OpenCL programming, where you don't have a display driver between you and the graphics hardware. You have to explicitly allocate memory on the card, hang on to these pointers into device memory (and be very careful not to dereference them on the host, because the address spaces are different) and explicitly memcpy between the host and the device. It was only very recently that NVIDIA added driver support for CUDA to explicitly memory map device memory into main memory's address space, their so-called "unified addressing".

My point is that it doesn't inherently happen on its own. If it does occur, it's because the driver or OS explicitly set up the memory map between the two address spaces, not because they are all inherently part of the same address space. The answer to this question could vary based on what the OS or driver stack is doing.

3 points

LÖVE is an awesome framework for building 2D games. I've used it for multiple game jams and have been very surprised at how easy and quick it is to get great looking stuff going.

8 points

It might not happen frequently with vectors but the larger your data type is the more likely it is to happen. Consider a multiplying two 4x4 matrices of 16 floats each. Depending on how well you make use of complex or vector instructions there are still a lot of non-atomic machine ops that need to happen and data that needs to be touched for the multiply to be considered "complete".

Worst case scenario, this could cause incredibly weird bugs or crashes that would be near impossible to diagnose. What if in the middle of updating your matrix in the sim thread, the renderer yanks the matrix and then goes to render something with it? That matrix isn't finished being updated, so it could it could be singular (i.e. non-invertible). Yikes!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.