Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThe Need for speed Pin
will138317-Dec-02 3:45
will138317-Dec-02 3:45 
GeneralRe: The Need for speed Pin
KaЯl17-Dec-02 4:00
KaЯl17-Dec-02 4:00 
GeneralRe: The Need for speed Pin
will138317-Dec-02 4:15
will138317-Dec-02 4:15 
GeneralRe: The Need for speed Pin
Gary Kirkham17-Dec-02 4:40
Gary Kirkham17-Dec-02 4:40 
GeneralRe: The Need for speed Pin
will138317-Dec-02 4:49
will138317-Dec-02 4:49 
GeneralRe: The Need for speed Pin
Nitron17-Dec-02 5:07
Nitron17-Dec-02 5:07 
GeneralRe: The Need for speed Pin
will138317-Dec-02 5:37
will138317-Dec-02 5:37 
GeneralRe: The Need for speed Pin
KaЯl17-Dec-02 5:20
KaЯl17-Dec-02 5:20 
groover4life wrote:
create a thread that just performs a basic loop, getting the data and updating the display, and the update rate will be what ever the CPU slice is for that particular thread?

My idea is this one: One thread updates the data periodically (using an infinite loop with a call to SleepEx in it, to allow the OS to activate another thread, especially important with Win9X OSs), another thread displays these data periodically too (with a timer for example), but asynchronously with the first one. Data protection is then required between the two threads, for example by using a mutex.
It enables to smooth the CPU consumption.

groover4life wrote:
What kind of tricks can I use in OpenGL??
There are plenty technics, you should perhaps refer to the OpenGL Red and Blue Books. You may also find some rules to follow on this page[^]

FYI, I call resident textures bitmaps you may "upload" in the video memory of the video card. Using this instead of standard RAM may fasten a lot the rendering, according to the capacity of the video card and the use of textures by the application.

groover4life wrote:
I always test, but in this case I did not write this code base. I was only left to deal with it
What I meant was that you should be careful the end users of your application may have a computer less powerful than yours, so you should probably have to envisage this case.

HTH,

K.




I hurt so bad inside
I wish you could see the world through my eyes
It stays the same
I just wanna laugh again

GeneralRe: The Need for speed Pin
will138317-Dec-02 5:27
will138317-Dec-02 5:27 
GeneralRe: The Need for speed Pin
KaЯl17-Dec-02 7:09
KaЯl17-Dec-02 7:09 
GeneralExtTextOut drawing landscape... Pin
Braulio Dez17-Dec-02 3:27
Braulio Dez17-Dec-02 3:27 
GeneralRe: ExtTextOut drawing landscape... Pin
Nitron17-Dec-02 3:32
Nitron17-Dec-02 3:32 
GeneralResizing CFormView with Status Bar and Toolbar Pin
Jonah Bishop17-Dec-02 3:28
Jonah Bishop17-Dec-02 3:28 
GeneralRe: Resizing CFormView with Status Bar and Toolbar Pin
Nitron17-Dec-02 3:36
Nitron17-Dec-02 3:36 
GeneralRe: Resizing CFormView with Status Bar and Toolbar Pin
Jonah Bishop17-Dec-02 3:58
Jonah Bishop17-Dec-02 3:58 
GeneralRe: Resizing CFormView with Status Bar and Toolbar Pin
Nitron17-Dec-02 4:01
Nitron17-Dec-02 4:01 
GeneralRe: Resizing CFormView with Status Bar and Toolbar Pin
Jonah Bishop17-Dec-02 4:23
Jonah Bishop17-Dec-02 4:23 
General_stdcall question Pin
ns17-Dec-02 3:03
ns17-Dec-02 3:03 
GeneralRe: _stdcall question Pin
Joaquín M López Muñoz17-Dec-02 3:08
Joaquín M López Muñoz17-Dec-02 3:08 
GeneralRe: _stdcall question Pin
ns17-Dec-02 3:15
ns17-Dec-02 3:15 
GeneralRe: _stdcall question Pin
ns17-Dec-02 3:27
ns17-Dec-02 3:27 
GeneralRe: _stdcall question Pin
Joaquín M López Muñoz17-Dec-02 3:33
Joaquín M López Muñoz17-Dec-02 3:33 
GeneralRe: _stdcall question Pin
ns17-Dec-02 3:44
ns17-Dec-02 3:44 
GeneralRe: _stdcall question Pin
Joaquín M López Muñoz17-Dec-02 5:54
Joaquín M López Muñoz17-Dec-02 5:54 
GeneralRe: _stdcall question Pin
Chris Richardson17-Dec-02 14:10
Chris Richardson17-Dec-02 14:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.