Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: C++ data structures Pin
David Crow5-Jul-07 3:15
David Crow5-Jul-07 3:15 
QuestionCString::Replace Problem [modified] Pin
lparsonson4-Jul-07 5:58
lparsonson4-Jul-07 5:58 
AnswerRe: CString::Replace Problem Pin
Mark Salsbery4-Jul-07 7:02
Mark Salsbery4-Jul-07 7:02 
GeneralRe: CString::Replace Problem Pin
lparsonson5-Jul-07 4:54
lparsonson5-Jul-07 4:54 
QuestionCStatic drawing interrupted... Worker, UI Threads???? Pin
Greg Ellis4-Jul-07 5:41
Greg Ellis4-Jul-07 5:41 
AnswerRe: CStatic drawing interrupted... Worker, UI Threads???? Pin
Matthew Faithfull4-Jul-07 6:27
Matthew Faithfull4-Jul-07 6:27 
GeneralRe: CStatic drawing interrupted... Worker, UI Threads???? Pin
Greg Ellis4-Jul-07 6:35
Greg Ellis4-Jul-07 6:35 
GeneralRe: CStatic drawing interrupted... Worker, UI Threads???? Pin
Matthew Faithfull4-Jul-07 6:55
Matthew Faithfull4-Jul-07 6:55 
If you're doing that sort of thing and you want it really smooth I'd consider DirectX/OpenGL or perhaps just doing everything except the drawing in lower priority background threads and relying on having enough hardware under the bonnet to keep up. Double buffering may be your friend aswell when it comes to getting smooth display updates. i.e. draw it all to an off screen Bitmap and then blit that to the screen in one go. With a bit of manipulation perhaps you could do the scrolling in the bitmap memory aswell without having to redraw the old parts of the waveform.
It's a while since I did much PC based MFC but I certainly wouldn't have recommended it for the sort of app your describing when I did. Having said that there may be other issues causing your problems. Are you using a cyclic or fixed buffer that doesn't do any heap allocation while in use to store your waveform? If not you're going to get horrible performance glitches from the memory allocator for example.
Are you maxing out your current hardware? If you check the performance monitor while your app is the only one running and it's flat out at 100% then either you've got some ineffecient code or you're trying to push your hardware beyond what it can achieve. Ultimately all such jolts and flickers are down to something being blocked either by synchronisation or a bandwidth limit somewhere. Unless something is resource stealing. In that regard watch out for the Quicktime tray icon app if you use DirectX it can steal the graphics card from you every few seconds and cause horrible jitter.



Nothing is exactly what it seems but everything with seems can be unpicked.

AnswerRe: CStatic drawing interrupted... Worker, UI Threads???? [modified] Pin
Mark Salsbery4-Jul-07 7:08
Mark Salsbery4-Jul-07 7:08 
QuestionOnSize Assertion Error Pin
sdancer754-Jul-07 5:11
sdancer754-Jul-07 5:11 
AnswerRe: OnSize Assertion Error Pin
Arman S.4-Jul-07 5:19
Arman S.4-Jul-07 5:19 
GeneralRe: OnSize Assertion Error Pin
sdancer754-Jul-07 22:56
sdancer754-Jul-07 22:56 
AnswerRe: OnSize Assertion Error Pin
Hamid_RT4-Jul-07 19:28
Hamid_RT4-Jul-07 19:28 
Questionneed your suggestion for data expression Pin
includeh104-Jul-07 4:56
includeh104-Jul-07 4:56 
QuestionRe: need your suggestion for data expression Pin
David Crow5-Jul-07 3:25
David Crow5-Jul-07 3:25 
Questionwriting to a port Pin
lovneet4-Jul-07 4:40
lovneet4-Jul-07 4:40 
AnswerRe: writing to a port Pin
CPallini4-Jul-07 4:48
mveCPallini4-Jul-07 4:48 
GeneralRe: writing to a port Pin
lovneet4-Jul-07 6:17
lovneet4-Jul-07 6:17 
GeneralRe: writing to a port Pin
CPallini4-Jul-07 9:07
mveCPallini4-Jul-07 9:07 
AnswerRe: writing to a port Pin
David Crow5-Jul-07 3:27
David Crow5-Jul-07 3:27 
AnswerRe: writing to a port Pin
khan++5-Jul-07 3:49
khan++5-Jul-07 3:49 
Questionlower and higher part of a variable Pin
Dobromir Dimitrov4-Jul-07 4:32
Dobromir Dimitrov4-Jul-07 4:32 
AnswerRe: lower and higher part of a variable Pin
Matthew Faithfull4-Jul-07 4:40
Matthew Faithfull4-Jul-07 4:40 
AnswerRe: lower and higher part of a variable Pin
CPallini4-Jul-07 4:42
mveCPallini4-Jul-07 4:42 
QuestionError sound when closing application Pin
Twister3364-Jul-07 2:23
Twister3364-Jul-07 2:23 

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.