Search found 153 matches

by acsMike
Sun Jul 30, 2006 12:06 pm
Forum: Announcements and Discoveries
Topic: ReValver Mk II screenshot on vista beta 2
Replies: 2
Views: 846

ReValver Mk II screenshot on vista beta 2

This screenshot was taken under Vista beta 2. It does not show that many cool Vista GUI aspects. In fact, installing the program and testing it under Vista was rather boring - it works right out of the box. :-) (ReValver Mk II was built on wxWidgets 2.6.3, Visual 2005, Windows XP). ReValver Mk II is...
by acsMike
Wed Jul 19, 2006 7:58 pm
Forum: Announcements and Discoveries
Topic: awxLM licensing component
Replies: 7
Views: 2659

awxLM licensing component

Hi there, This is an official announcment of an unofficial component. I have not yet decided weather to go public with this component or not, or to sell it or give it away. Neither have I decided if it is going to be open source, or closed. Most of all, I post this message to get some feedback on th...
by acsMike
Wed Jul 19, 2006 7:32 pm
Forum: C++ Development
Topic: wxGetSingleChoiceIndex
Replies: 2
Views: 687

Hi there Mr. / Mrs. Bunny.

This approach works fine. Thanks for the tip.
by acsMike
Mon Jul 10, 2006 10:11 am
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

My code still causes CPU usage of over 90% when I reduce the meter update interval to 50ms. Perhaps I could optimise the DrawMemoryBitmap() function so that it only draw the changes, but this is not where the bottleneck is, according to Shark profiler. Where does Shark tell you the bottleneck is? I...
by acsMike
Fri Jul 07, 2006 12:20 pm
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

I am not sure how your code currently works. Do you use both Refresh and Update at this point? I would not use Update unless it is abolutely vital, and because this is a background job I suppose you don't? On second though, using Update is the only way to ensure that the screen refresh is actually ...
by acsMike
Fri Jul 07, 2006 11:43 am
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

Just finished re-compiling the libraries with the wxMAC_USE_CORE_GRAPHICS flag defined, and the results are the same. Hmm, that is all the advice I can give without actully profiling the code myself. Is this with a background thread or with a timer? (If it is with a timer, do you pause the timer ov...
by acsMike
Fri Jul 07, 2006 10:47 am
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

I didn't know about the wxMAC_USE_CORE_GRAPHICS switch, I'm recompiling my libraries now. This undocumented stuff is exactly why I'm trawling through this forum - I'm surprised it hasn't been mentioned before. Because Stefan has not "announced" it I am reluctant to recommend it unconditionally. I b...
by acsMike
Fri Jul 07, 2006 9:50 am
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

Unfortunately, changing the code to just one screen blit makes little difference to my app - the processor is still at 100%. Let me ask a stupid question... What is the performance of your computer? Oh, another thing... There is a rather undocumented configuration switch called wxMAC_USE_CORE_GRAPH...
by acsMike
Thu Jul 06, 2006 8:59 pm
Forum: C++ Development
Topic: wxGetSingleChoiceIndex
Replies: 2
Views: 687

wxGetSingleChoiceIndex

Hi,
For such a smart function as ::wxGetSingleChoiceIndex (and its cousins), is there no way to acctually specify the default selection?
by acsMike
Thu Jul 06, 2006 1:08 pm
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

When I blit, I'm blitting different regions of the same source bitrmap. Are you saying that I'd be better off drawing a composite bitmap in memory & then blitting in one go? Yes, that is one access to the graphics card less. Depending on your system, it may matter somewhat. I select the null bitmap...
by acsMike
Thu Jul 06, 2006 12:36 pm
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

Here's my drawing code: void Meter::OnPaint(wxPaintEvent&) { // Get the device context // otherwise this method recurses forever wxPaintDC dc(this); // Avoid using floating point vars int top = 1000 * _height * (_range.GetMax() - _range.GetValue()); top /= _range.GetSpan(); top /= 1000; // Use a me...
by acsMike
Thu Jul 06, 2006 12:07 pm
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

I've now tried implementing the timer as a thread that posts events back to the main thread, and the perfomance is worse than using the wxTimer. Looking at the Shark profile, the processor is spending most of it's time rendering graphics. Does anyone know of any way to optimise graphics on wxMac? E...
by acsMike
Thu Jul 06, 2006 9:43 am
Forum: Platform Related Issues
Topic: Graphics updates on wxMac
Replies: 31
Views: 4579

To clarify points that I thought I'd made earlier: The calculations made in the thread take nowhere near 20ms. At the moment, I use a bitshift operation to emulate changing data rather than reading data from my hardware. (BTW, wxStopWatch seems unsuitable for timing intervals less than 16ms). I am ...
by acsMike
Thu Jul 06, 2006 9:12 am
Forum: Platform Related Issues
Topic: wxMac - Opening files with funny names...
Replies: 5
Views: 1249

all functions that take a wxString as param will do the conversion themselves, all functions that take a char* (like fopen etc) need a wxFNCONV
Of curiosity, why differentiate? Why not use wxString everywhere? (And have the API do the conversion if the situation require it.)
by acsMike
Thu Jul 06, 2006 9:10 am
Forum: Platform Related Issues
Topic: wxMac - Opening files with funny names...
Replies: 5
Views: 1249

Re: Unicode Filenames

[quote="Stefan Csomor"]note also that I've committed to CVS HEAD the changes needed to perform proper decomposition (