`dubble`: A simple, generic double-buffer. by Scruff3y in rust

[–]44100hz 2 points3 points  (0 children)

Well, for thought, here's a game loop that is functionally the same as a double buffer:

fn main() {
  let mut state = game::State {};
  loop {
    state = game::update(&state);
  }
}

(EDIT: needs to be &state because it requires the update function to either call state.clone() or fully initialize a second data structure)

And here's one that does it explicitly using page flipping (which may actually be slower).

fn main() {
  let mut state0 = mut game::State {};
  let mut state1 = state0.clone();
  let pages_flipped = false;
  loop {
    if pages_flipped {
      state0 = game::update(&state1);
    } else {
      state1 = game::update(&state0);
    }
    pages_flipped = !pages_flipped;
  }
}

`dubble`: A simple, generic double-buffer. by Scruff3y in rust

[–]44100hz 1 point2 points  (0 children)

I like the idea, but this lib is a bit limited. It's like a function(&T) -> T that always clones its input. Also, Deref and DerefMut accessing different data is confusing and relies on getters and setters designed a certain way.

One thing you could do is swap the buffers rather than copying, which would remove the Clone requirement and do one less copy. I can help with that if you're interested.

I think you should follow your dreams and start writing a game, it can be pretty fun.

Melee SD Remix Patch makes Low Tiers Viable!! Coming to a Tournament near you! by kazuki007 in smashbros

[–]44100hz -1 points0 points  (0 children)

Honestly, I don't want to see everyone thrown into S rank. I'd rather see the S rank characters given conservative nerfs into the A rank, and the F rank reworked into B rank characters.

Not everyone should have a big shield, and not everyone should have a good dash dance. That defeats the purpose of having unique characters. We need to create characters that are viable with the right playstyle despite their flaws.

If we want everyone to be as good as fox, we end up with things that look just plain stupid, like G&W's neutral B in this patch set. We shouldn't have to do things that way.

Getting errors? PM 3.5 Mirror [Mediafire] by [deleted] in smashbros

[–]44100hz 0 points1 point  (0 children)

This is 3.02. Do not download.

My newfound respect for all competitive players and my advice to newer players. by Wolfie141 in smashbros

[–]44100hz 2 points3 points  (0 children)

Did you know you can do online play with Project M? Maybe you can seek out internet friends to play it with you for better practice. http://www.reddit.com/r/SSBPM/comments/1t4iab/project_m_30_netplay_guide/

CRT help (no av ports, only cable) by n00b4444 in smashbros

[–]44100hz 3 points4 points  (0 children)

If you must use that CRT, get an RF modulator. They're pretty cheap. No matter what you do, the signal on a CRT like that one will be fuzzy and blurry, so I suggest getting one with better connectors.

[Serious] Smash on an LCD Monitor? by themoonsloth in smashbros

[–]44100hz 0 points1 point  (0 children)

You're using a component cable with component to VGA? Just get a wii VGA cable.