Re: Query in 40000 chip demo
None to solve the logical problem ????:confused:
Re: Query in 40000 chip demo
Quote:
Originally Posted by
aamer4yu
2) if i change the loop, the chip movemment gets slow
Is it still slow after you restore the original version and recompile it? Maybe you have disabled the optimization or you do a debug build?
Re: Query in 40000 chip demo
Quote:
Originally Posted by
aamer4yu
1) I want to know the significance of choosing -11000 to 11000 in the function void MainWindow::populateScene()
The scene (0,0) coordinate is in the middle of the scene.
Re: Query in 40000 chip demo
@ Jacek
yes i tried rebuilding the application, using each loop
@wysota,
thx, even i guessed that it is in middle, in fact the aim of writing the new loop was to see how zoom would be affected if the middle is changed to top left
So I would like to know how changing the middle cordinate of the scenen si affecting the speed of dragging ??
Any help ?
Re: Query in 40000 chip demo
@jacek... sorry didnt annwer u completely..
well the original version runs fine when i restore to it.
And ia m not using any optimization,,,using the defaults when i open the project in Visual Studio.
The problem is occuring when i change the loop , making the middle cordinates as top left. :(
Re: Query in 40000 chip demo
Quote:
Originally Posted by
aamer4yu
So I would like to know how changing the middle cordinate of the scenen si affecting the speed of dragging ??
Why would it affect the speed of dragging? It is important for rotation of the canvas (it is rotated around the centre), nothing else.
Re: Query in 40000 chip demo
Quote:
Originally Posted by
aamer4yu
The problem is occuring when i change the loop , making the middle cordinates as top left.
Do I understand you correctly, that if you change that loop back to original version and recompile the example, it works faster?
Re: Query in 40000 chip demo
@wysota even i want to know why was it affetcing the speed while dragging the chips..
u can try urself...
@jacek u r right... the original works fine,,, but whne i change it, the dragging becomes slow .. i amnot able to logically make out why is it happening :(
Re: Query in 40000 chip demo
Quote:
Originally Posted by
aamer4yu
@wysota even i want to know why was it affetcing the speed while dragging the chips..
u can try urself...
@jacek u r right... the original works fine,,, but whne i change it, the dragging becomes slow .. i amnot able to logically make out why is it happening :(
It works fine for me... I don't experience any slowdowns.
Re: Query in 40000 chip demo
Quote:
Originally Posted by
wysota
It works fine for me... I don't experience any slowdowns.
For me too. I have both versions running side by side and I don't see any difference.
Re: Query in 40000 chip demo
Something else must have been changed in the code.
@aamer4yu: Could you make a diff of the source code to see if there are any other differences outside the loop?