Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Level editor is really laggy if I use too much links, and too long paths #60

Open
pampogokiraly opened this issue Oct 16, 2020 · 2 comments
Open

Comments

@pampogokiraly
Copy link
Contributor

@pampogokiraly pampogokiraly commented Oct 16, 2020

Hi!
I really like to create out-of-the-box levels Without scripting, but that means, i have to link together millions of buttons, and levers to moving blocks. And i also have to make really long paths for my moving blocks.
All of this leads to very big lag. Could you please add maybe a setting to make the arrows a whole less laggier (don't make them animated, etc...)? :D
Here are some examples on what i mean by "a LOT of links and paths":

(Games levelpack, level 4, chess):
stilltoomanyarrows_mnms
(Dungeon crawling full version, under construction. Not yet out to public):
toomanyarrows_mnms

Thank you :)

@pampogokiraly pampogokiraly changed the title Level editor is really laggy if I make levels... Level editor is really laggy if I use too much links, and too long paths Oct 16, 2020
@SanskritFritz
Copy link
Contributor

@SanskritFritz SanskritFritz commented Oct 20, 2020

As a workaround I commented out these lines in Functions.cpp:

	//Now draw arrows on it
// 	for(double p=offset;p<length;p+=spacing){
// 		drawLine(int(x1+p*dx+0.5),int(y1+p*dy+0.5),
//             int(x1+(p-xsize)*dx-ysize*dy+0.5),int(y1+(p-xsize)*dy+ysize*dx+0.5),renderer,color);
// 		drawLine(int(x1+p*dx+0.5),int(y1+p*dy+0.5),
//             int(x1+(p-xsize)*dx+ysize*dy+0.5),int(y1+(p-xsize)*dy-ysize*dx+0.5),renderer,color);
// 	}

Of course this is not ideal, since the moving arrows do provide valuable information. But the lag has been cured for sure 😄

@pampogokiraly
Copy link
Contributor Author

@pampogokiraly pampogokiraly commented Oct 22, 2020

Here is an idea on how this setting could be implemented:
lolarrowgobrrrr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants