Re: gtk interface responsiveness

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn

On Monday, 7 August 2017 at 22:59:16 UTC, Moritz Maxeiner wrote:

On Monday, 7 August 2017 at 22:02:21 UTC, Johnson Jones wrote:
I have an icon that I toggle which clicked. It seems that I 
can't toggle it any faster than about a second.


The handler is being called each click but it seems the gui is 
not updated more than about 1fps in that case? Although, I'm 
sure it update faster than 1fps, just seems the icon/image 
isn't.


The code I use to set the image is:

Image.setFromStock("gtk-go-up", GtkIconSize.SMALL_TOOLBAR);

or

Image.setFromStock("gtk-go-down", GtkIconSize.SMALL_TOOLBAR);

[...]


Could you please post the complete minimal code (and compiler 
options) (or a link to them) required to reproduce the issue?



It takes about 3 seconds to write the map file(I have it 
generating cross references, not sure what it actually does but I 
thought it might help with debugging issues. I have it enabled 
for both x86 and x64. I thought I disabled

it with no differences, but maybe I missed it).

It takes another 4 seconds to create the pdb.

But it seems that about 6 seconds are done doing thing

7:13:14.7148555 
PM	link.exe	9860	QueryStandardInformationFile	C:\D\Libraries\x64\gtkd.lib	SUCCESS	AllocationSize: 84,443,136, EndOfFile: 84,439,450, NumberOfLinks: 1, DeletePending: False, Directory: False
7:13:14.7148665 
PM	link.exe	9860	CreateFileMapping	C:\D\Libraries\x64\gtkd.lib	SUCCESS	SyncType: SyncTypeOther
7:13:15.7801685 PM	ServiceHub.IdentityHost.exe	4952	Thread 
Exit		SUCCESS	Thread ID: 11224, User Time: 0.000, Kernel 
Time: 0.000
7:13:17.2481064 PM	ServiceHub.VSDetouredHost.exe	5004	Thread 
Create		SUCCESS	Thread ID: 10976
7:13:17.4141043 PM	devenv.exe	1040	Thread Create		SUCCESS	Thread 
ID: 11200
7:13:17.8990951 PM	DParserCOMServer.exe	4492	Thread 
Create		SUCCESS	Thread ID: 9176
7:13:18.7481654 PM	ServiceHub.VSDetouredHost.exe	5004	Thread 
Exit		SUCCESS	Thread ID: 10976, User Time: 0.000, Kernel 
Time: 0.000
7:13:18.9163321 PM	devenv.exe	1040	Thread Exit		SUCCESS	Thread 
ID: 11200, User Time: 0.000, Kernel Time: 0.000
7:13:19.4011479 PM	DParserCOMServer.exe	4492	Thread 
Exit		SUCCESS	Thread ID: 9176, User Time: 0.000, Kernel Time: 
0.000
7:13:19.9681080 PM	ServiceHub.VSDetouredHost.exe	5004	Thread 
Create		SUCCESS	Thread ID: 10416



Not sure what is happening in there but it seems like Visual D or 
Visual Studio issue rather than dmd ;/



I'll look in to it some more to see what I can find.





Re: gtk interface responsiveness

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn

On Monday, 7 August 2017 at 22:59:16 UTC, Moritz Maxeiner wrote:

On Monday, 7 August 2017 at 22:02:21 UTC, Johnson Jones wrote:
I have an icon that I toggle which clicked. It seems that I 
can't toggle it any faster than about a second.


The handler is being called each click but it seems the gui is 
not updated more than about 1fps in that case? Although, I'm 
sure it update faster than 1fps, just seems the icon/image 
isn't.


The code I use to set the image is:

Image.setFromStock("gtk-go-up", GtkIconSize.SMALL_TOOLBAR);

or

Image.setFromStock("gtk-go-down", GtkIconSize.SMALL_TOOLBAR);

[...]


Could you please post the complete minimal code (and compiler 
options) (or a link to them) required to reproduce the issue?


I'll try to formulate something when I get some time to do so. 
Just trying to get things to work the way I need them to see if 
gtk is gonna be the gui library I use lots of problems but 
hopefully it's just growing pains.




Re: gtk interface responsiveness

2017-08-07 Thread Moritz Maxeiner via Digitalmars-d-learn

On Monday, 7 August 2017 at 22:02:21 UTC, Johnson Jones wrote:
I have an icon that I toggle which clicked. It seems that I 
can't toggle it any faster than about a second.


The handler is being called each click but it seems the gui is 
not updated more than about 1fps in that case? Although, I'm 
sure it update faster than 1fps, just seems the icon/image 
isn't.


The code I use to set the image is:

Image.setFromStock("gtk-go-up", GtkIconSize.SMALL_TOOLBAR);

or

Image.setFromStock("gtk-go-down", GtkIconSize.SMALL_TOOLBAR);

[...]


Could you please post the complete minimal code (and compiler 
options) (or a link to them) required to reproduce the issue?


gtk interface responsiveness

2017-08-07 Thread Johnson Jones via Digitalmars-d-learn
I have an icon that I toggle which clicked. It seems that I can't 
toggle it any faster than about a second.


The handler is being called each click but it seems the gui is 
not updated more than about 1fps in that case? Although, I'm sure 
it update faster than 1fps, just seems the icon/image isn't.


The code I use to set the image is:

Image.setFromStock("gtk-go-up", GtkIconSize.SMALL_TOOLBAR);

or

Image.setFromStock("gtk-go-down", GtkIconSize.SMALL_TOOLBAR);

I also have been experiencing significant slow downs when the gui 
load for the first time. Doesn't always seem to happen but 
basically keyboard output across the os is unresponsive then 
everything occurs at once(when whatever catches up for quits 
interfering with the keyboard). It takes about 20 seconds for 
that to occur then everything works fine afterwards best I can 
tell.



(BTW, thanks mike for all the help ;))