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

TPT simulation ~2-3x slower on ubuntu 20.04 compared to windows and ubuntu 18.04 #756

Closed
jebbyk opened this issue Dec 21, 2020 · 7 comments
Labels
Not our fault upstream or environment problem

Comments

@jebbyk
Copy link
Contributor

jebbyk commented Dec 21, 2020

I able to get ~100fps on windows and remember how I was getting ~120fps on ubuntu 18.04 in my build when fpscap set to 2
but on ubuntu 20.04 I can get no more then 60fps and 40fps in average with the same save.
Where possibly a problem can be?

@jebbyk
Copy link
Contributor Author

jebbyk commented Dec 21, 2020

well the problem was the bad package in ubuntu software store. idk why but it is the same 9.5 version and it works a lot slower.

@jebbyk jebbyk closed this as completed Dec 21, 2020
@jebbyk
Copy link
Contributor Author

jebbyk commented Dec 21, 2020

looks like it is debug version presented in ubuntu software

@LBPHacker
Copy link
Member

LBPHacker commented Dec 21, 2020

Amazing... Going to mark this invalid, I hope you don't mind. Created a more appropriate label for this.

@LBPHacker LBPHacker added Invalid nothing to fix Not our fault upstream or environment problem and removed Invalid nothing to fix labels Dec 21, 2020
@jacob1
Copy link
Member

jacob1 commented Dec 21, 2020

Where exactly did you get it from? I don't see powder toy in the ubuntu repos. I don't have software center installed, but I tried searching various places on the website and also didn't see it.

I'd like to get this package fixed or removed so that nobody else has this problem.

@JGCarroll
Copy link

Sorry about this, I'll take a look into it.

The package is a snap so it's not in the Ubuntu repositories itself but presents itself in Ubuntu's default app store GUI as well as some other distros. There's a web interface for it here https://snapcraft.io/the-powder-toy

I'll upload a new build in a few hours and look into why the build system is building debug releases so it doesn't happen again.

@JGCarroll
Copy link

So to my shame there was no grand problem with the build system, I simply hadn't asked it to actually build release builds. Unfortunately it appears the second sentence of https://powdertoy.co.uk/Wiki/W/Scons_command_line_flags.html is incorrect or misleading so I'd just not been passing --release into scons.

The latest version on the Snap store is now correctly in release mode. Existing clients will update to it automatically but you can speed it up with sudo snap refresh if you want it sooner.

JGCarroll/the-powder-toy-snap@d22cc2d Relevant commit of shame.

@jacob1
Copy link
Member

jacob1 commented Dec 21, 2020

Thanks!

--release used to be on by default, with the only way to disable it being --debugging. This was changed at some point in the past.

The rest still may be default, unsure. But --release was absolutely the most important option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not our fault upstream or environment problem
Projects
None yet
Development

No branches or pull requests

4 participants