Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 231539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:56:29+00:00 2026-05-11T19:56:29+00:00

First, some backstory: I’m making what may amount to be a roguelike game so

  • 0

First, some backstory:

I’m making what may amount to be a “roguelike” game so i can exersize some interesting ideas i’ve got floating around in my head. The gameplay isn’t going to be a dungeon crawl, but in any case, the display is going to be done in a similar fasion, with simple ascii characters.

Being that this is a self exercise, I endeavor to code most of it myself.

Eventually I’d like to have the game runnable on arbitrarily large game worlds. (to the point where i envision havening the game networked and span over many monitors in a computer lab).

Right now, I’ve got some code that can read and write to arbitrary sections of a text console, and a simple partitioning system set up so that i can path-find efficiently.


And now the question:

I’ve ran some benchmarks, and the biggest bottleneck is the re-drawing of text consoles.

Having a game world that large will require an intelligent update of the display. I don’t want to have to re-push my entire game buffer every frame… I need some pointers on how to set it up so that it only draws sections of the game have have been updated. (and not just individual characters as I’ve got now)

I’ve been manipulating the windows console via windows.h, but I would also be interested in getting it to run on linux machines over a puTTY client connected to the server.

I’ve tried adapting some video-processing routines, as there is nearly a 1:1 ratio between pixel and character, but I had no luck.

Really I want a simple explanation of some of the principles behind it. But some example (psudo)code would be nice too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:56:29+00:00Added an answer on May 11, 2026 at 7:56 pm

    I am not going to claim to understand this, but I believe this is close to the issue behind James Gosling’s legendary Gosling Emacs redrawing code. See his paper, titled appropriately, “A Redisplay Algorithm”, and also the general string-to-string correction problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some strange bug: when I open page first time in some browser
First some background, which can be condensed into editing a property VatCode of VatCodeViewModel.
First some background, we are creating a new eGov application. Eventually, a citizen can
Okay, first some background, I can't use any javascript library except YUI for this
First some background: I've got a Rails 2.2.2 app with all kinds of janky
First some background, I've written an open source .NET library, named Duplicitiy (on github.com),
First some background: I'm working on an application and I'm trying to follow MVVM
OK, so first some things that might be relevant: I'm using the Clang 3.1
Hi and thanks for your attention. First some background on the question: I have
Today i have a little problem containing a File Upload. First some Infos: Rubyversion:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.