GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Oct 25, 2014 8:46 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Performance in Windows without X11
PostPosted: Mon Mar 17, 2014 9:41 pm 
Offline
Familiar Face

Joined: Sun Mar 16, 2014 2:17 pm
Posts: 6
I'm trying to make a graph out of quite big amount of measured data. Testing different tools for that like simple useage of cairo or GtkDatabox became very slow when compiled with mingw while the same program compliled in cygwin + X11 worked OK. Most testing I have done with GtkDatabox using gtk_databox_lines_new with almost 1M points. Opening just that window in full screen (1280 wide) takes several minutes when compiled with mingw compared to probably less than a second in cygwin. The process takes a lot of CPU time with mingw and close to none in cygwin.

What is the cause for this? Is there a way to make it faster?

I'm using latest GTK 2.24 on Windows 7 (Core i3 laptop)


Top
 Profile  
 
 Post subject: Re: Performance in Windows without X11
PostPosted: Tue Mar 18, 2014 6:15 pm 
Offline
GTK+ Guru

Joined: Fri Mar 25, 2011 5:16 pm
Posts: 177
Location: USA
The latest version of GTK+ for Windows isn't 2.24, it's 3.6.4.
Anything prior to GTK+-3.0 is quite old now, and you don't say if your using 32 or 64 bit GTK.
http://www.gtk.org/download/index.php

I don't know about your speed problem, but you don't say if you have a dedicated graphics chip in your laptop, or what it is. i.e. AMD, NVIDIA, amount of memory?


Top
 Profile  
 
 Post subject: Re: Performance in Windows without X11
PostPosted: Tue Mar 18, 2014 7:09 pm 
Offline
Familiar Face

Joined: Sun Mar 16, 2014 2:17 pm
Posts: 6
I know latest version is not GTK2, but my software was done in 2007 and not much updated since and it has many features, which have later been depreciated and then removed from GTK3.

The GTK I'm using is 32 bit. I don't know much about 32 vs. 64 bits in Windows, but I have thought that there isn't much difference and you need to use 32 bit, if you are going to distribute the software to non-64 bit systems.

Laptop Information:
Report Date: 3/18/2014
Report Time[hr:mm:ss]: 20:43:2
Driver Version: 8.15.10.2559
Operating System: Windows 7 Service Pack 1(6.1.7601)
Default Language: Finnish (Finland)
DirectX* Version: 10.1
Physical Memory: 4030 MB
Minimum Graphics Memory: 32 MB
Maximum Graphics Memory: 1696 MB
Graphics Memory in Use: 162 MB
Processor: Intel64 Family 6 Model 42 Stepping 7
Processor Speed: 2095 MHz
Vendor ID: 8086
Device ID: 0116
Device Revision: 09

Graphics Processor Information
Processor Graphics in Use: Intel(R) HD Graphics 3000
Video BIOS: 2089.0
Current Graphics Mode: 1366 by 768


Last edited by zerohour on Tue Mar 18, 2014 9:39 pm, edited 1 time in total.
remove unnecessary space/make clearer


Top
 Profile  
 
 Post subject: Re: Performance in Windows without X11
PostPosted: Wed Mar 19, 2014 7:07 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 764
Location: UK
Hello,

GtkDatabox is a third party library. At the moment is the latest version depends on version GTK 2.8+ so you will still have to use GTK 2.24 for a while. There looks like some work is being done to convert to GTK v3, but the last update was in October 2013.

Mingw and Cygwin work in different way. Graphics wise Cygwin uses X11 where Mingw depends on the application doing native Windows API calls. Maybe extra graphics work that is not needed may be optimised out on Cygwin? Have you also checked the compiler options to make sure that you are compiling for the correct processor. GtkDatabox uses floating arithmetic so check that it is using the math co-processor and not using emulation.

As with all things that appear slow it would be best to use a profiler to find exactly where in your application most time is spent. Then you would know what you are looking for.

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group