Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a constant stream of data coming into my c++ console application and i want to display this data on the console.

the problem is that since the amount of data received is huge I end up slowing the whole PC is there a way i can solve this problem (double buffering ??) if so can you point me to an article of example of how this is conducted

(i am currently using a simple cout with output the data)
Posted

Bad idea, period!
If there is that much data that it is slowing down the whole PC, how do you expect the user to read it?
You need to look at either summarizing the data, or presenting it in a fixed page size.

At the moment, you are just adding more and more data to the output, causing more and more lines of text to be scrolled, which is why it slows down.
 
Share this answer
 
Comments
hakz.code 1-Jun-11 8:51am    
Yes! I agree
dod123 1-Jun-11 9:10am    
so there is now way to do this?
honestly idk if the user doesn't get time to read the text.. as long as the pc doesn't slow down (note if i minimize the console cmd the pc doesn't slow down)
Sergey Alexandrovich Kryukov 1-Jun-11 16:24pm    
Agree, a 5.
--SA
Try to look at it through the eyes of the user:

What does he want to see?
What does he need to see?

Maybe all that's relevant is some kid of status, and it might be sufficient to update it once or twice a second.

If the user really needs to be able to see the actual data, then convert it to something that's both compact and visually meaningful, such as a single dot in a function graph. You could make a display similar to the systems performance meter, using double-buffering to redraw the graph a couple of times per second.
 
Share this answer
 
v2
Comments
Guyverthree 1-Jun-11 11:04am    
I second this.

If you need to keep a copy of this Information then put it in a file and only display the it every second to the user.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900