Search found 147 matches

by Tapsa
Sun Mar 21, 2021 10:11 am
Forum: C++ Development
Topic: Intense lag when dragging window around
Replies: 4
Views: 1173

Re: Intense lag when dragging window around

Correct, most tabs have a scrolled window. Compatibility modes XP SP3, Vista and 7 have no effect on the lag. I can try the detailed steps with custom databases etc, since I only used checkbox in executable properties. Btw, I added logging into wxWindowMSW::MSWDefWindowProc, which to my surprise red...
by Tapsa
Sun Mar 21, 2021 9:25 am
Forum: C++ Development
Topic: Intense lag when dragging window around
Replies: 4
Views: 1173

Re: Intense lag when dragging window around

My CPU is Intel Core i7-7700 and GPU is nVidia GeForce GTX 1070. My app has about 2500 instances of wxWidgets classes total, most of which are customized wxTextCtrl (>474), wxStaticText (>505), and wxComboCtrl (>96). There are also over 648 wxBoxSizers, over 117 wxGridSizers, for example. The sizers...
by Tapsa
Sun Mar 21, 2021 8:09 am
Forum: C++ Development
Topic: Intense lag when dragging window around
Replies: 4
Views: 1173

Intense lag when dragging window around

Hi all, For years I thought the lag in my app was caused due to sheer number of widgets I'm using and belief that the Windows API was extremely poor in performance. I used to develop using MinGW, but I recently moved to Visual Studio and used its performance profiler to check cause of the lag. As yo...
by Tapsa
Mon Aug 20, 2018 10:05 am
Forum: Compiler / Linking / IDE Related
Topic: Unable to link after Visual Studio update
Replies: 1
Views: 779

Unable to link after Visual Studio update

I've updated my Visual Studio from 2015 to 2017. Now my source codes are completely fine, because when I copy paste them to minimal sample project, they compile and link without any problems. I have tried to manually patch my vcxproj file, without success so far. I can hijack the minimal sample ever...
by Tapsa
Fri Mar 03, 2017 9:24 am
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 2755

Re: Smooth Out wxScrolled<wxPanel> Scrolling

You are the man, doublemax ! I added a timer to detect how much is scrolled after last mouse wheel event is processed, and it varies . Instead of skipping the event I will call Scroll directly to prevent too much scrolling. You are indeed correct that during drawing there is no other code executed, ...
by Tapsa
Thu Mar 02, 2017 8:09 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 2755

Re: Smooth Out wxScrolled<wxPanel> Scrolling

That is skeleton code where I planned to add more things.
I have no drawing code for this part, but is the wx code interrupted for scroll events?
Maybe even Windows itself stacks the scroll calls before handing them over to my application?
by Tapsa
Thu Mar 02, 2017 7:42 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 2755

Re: Smooth Out wxScrolled<wxPanel> Scrolling

It continues at least 20000 lines backwards (I can hold enter down and there are forever more lines to show), but here is the most recent calls: Program received signal SIGSEGV, Segmentation fault. 0x039092db in wxEvtHandler::ProcessEvent (this=0x77d70f8, event=...) at ../../src/common/event.cpp:146...
by Tapsa
Thu Mar 02, 2017 6:47 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 2755

Re: Smooth Out wxScrolled<wxPanel> Scrolling

It crashes as soon as WasProcessed is called in wxEvtHandler::ProcessEvent, because the event object is destroyed? Windows 10 64-bit, MinGW-w64 6.2.0, wx 3.1.0. I came here in case someone had better idea altogether how to do this. To check if window is being painted I thought to look at the scroll ...
by Tapsa
Thu Mar 02, 2017 1:37 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 2755

Smooth Out wxScrolled<wxPanel> Scrolling

I am trying to implement smooth scrolling function for wxScrolled<wxPanel> object. if ( Still painting? ) { Add one (not more) pending scrolling event. } else { Scroll immediately, causing repaint. } Default behavior, that I need this against for, is to queue up scrolling events even if the drawing ...
by Tapsa
Tue Jan 31, 2017 8:07 pm
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 2065

Re: How to play multiple wxSound objects at once?

TY. That lib (along with some decoders) seems to be a good way to go. It's ridiculous that there is no one-liner library out there for such a simple thing as playing multiple sounds simultaneously. Like this #include "one_liner_sound_library.h" ... SoundLib::Play(/* some settings */); Soun...
by Tapsa
Mon Jan 30, 2017 8:22 am
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 2065

Re: How to play multiple wxSound objects at once?

wxMediaCtrl seems to have no method to load media from memory.
I need a function similar to this:

Code: Select all

wxSound (size_t size, const void *data)
It looks like I am left to seek for alternative libraries outside of wx.
It turned out that I need mp3 support too, so mixing wave forms would not be enough.
by Tapsa
Sun Jan 29, 2017 8:58 am
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 2065

Re: How to play multiple wxSound objects at once?

If I understand correctly, I will need separate wxMediaCtrl objects for the simultaneously playing sounds?
by Tapsa
Fri Jan 27, 2017 11:06 am
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 2065

How to play multiple wxSound objects at once?

In my program I need to play up to four sound files simultaneously. First problem I found is that wxSound is noncopyable, but I got over it only to find out that the documentation correctly says If another sound is playing, it will be interrupted. in the description of wxSound::Play, which I sadly n...
by Tapsa
Fri Dec 16, 2016 10:23 am
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 4395

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

There are "setup.h" file in both mswu and mswud folders as you asked. I don't have nmake on my PC. Yes I can still build and run the minimal sample using DLL Debug configuration. MSVC is so intelligent that it looks for you already beforehand some stuff up. I have managed to get the errors...
by Tapsa
Fri Dec 16, 2016 8:46 am
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 4395

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Thanks for the project, but it doesn't compile. I added WXWIN=C:\Cpp\wxWidgets to system variables. Immediately upon opening PBApp.sln these errors are shown: Error (active) cannot open source file "wx/wx.h" PBApp DLL c:\Users\Tapsa\Downloads\Empty MSVC14 DLL project\Precompiled.h 14 Error...