Skip to content

u/headkase

In this archive from Sep 2013 to Apr 2020

1
posts
44
comments
0
media
126
score

I have a SSD / HDD hybrid system and I learned a few things from experimenting with its configuration. It is a mistake to mount the HDD to /home. If you do, booting will have to wait for that partition to mount which slows that down. Then responsiveness, many applications need access to various hidden folders in your /home and the HDD is, again, slow.

What I did instead was create a mountpoint under /mnt, in my case /mnt/Store, and configured an entry in /etc/fstab with exec and systemd-x-automount options. The former allows execution of programs on that partition and the latter makes it so that during boot it isn't blocking so you're not waiting.

Then in the HDD partition I recreated the folders I use, like Music, Video, Documents, and Downloads. Then simply configure the applications you use to use those respective folders.

This layout scheme I am recommending because I tried it different ways, this is the best I've found, if there are aspects of the above that can be improved I'm also all ears.

Edit: and you change the permissions of your HDD mountpoint so that your user can read and write it. I also have a "bin" folder where programs go, like my Steam Library and installed GOG games.

2 points

And without the prerequisite skills, general system administration skills, along with Google you just aren't going to have a good time with Arch.

1 points

Unless there is a political or economic reason to use a server inside of your country then it's not important where you get your data from. Just use reflector to sort whatever it wants into newest and fastest for where you live. The reason why countries really don't matter is because the geography of the internet may just mean that a server in another country is actually faster for you.

​

tl;dr unless you have to use your own countries servers for legal or money reasons then don't worry about it and let reflector do it all.

4 points

VCPkg is a Windows tool made by Microsoft and everything I said above is for Windows. Also, I have built SFML with VCPkg (64 bit Windows triplet which also builds release and debug versions along with dependencies automatically) and it works fine as long as Visual Studio works fine.

1 points

You have compiled SFML with your GCC toolchain right? If you compile your program with GCC then SFML has to also be compiled with that same GCC. Otherwise you will have incompatibility at the binary level. You can't just download the pre-built binaries of SFML and use them with a random GCC. You might get lucky for compatibility but that would be the exception.

1 points

Also, uninstall VS, go into your user's Documents folder and delete any remnants there, go into the Program Files folder where it was installed and delete anything left over there, and go into the C:\ProgramData folder (which is hidden) and find and delete any remains there. Other than those 3 places the only other place for cruft would be the registry. And hopefully you won't have to go there. After deleting the cruft in the 3 given folder locations (either in the folders or their subfolders) THEN try to reinstall Visual Studio again.

2 points

If you can refocus on getting Visual Studio working (because if you can do that then getting SFML working with VCPkg is simply a solved problem) I think that would be the most productive route. Visual Studio, if you're already on Windows, is just so much better than Code::Blocks. And I've used both.

2 points

Also, if you are only getting crashes after trying to configure SFML in it then undo those settings and let vcpkg manage everything.

For vcpkg, install git on your machine, clone the repo, then in a Visual Studio command prompt (look in the Start menu) switch to the cloned folder and run the bootstrap. That will build the tool. To check for updates be in that folder (always in a Visual Studio command prompt) and do a "git pull" which will sync to the latest package definitions and vcpkg version. Then do "vcpkg install <pkg-name>", and "vcpkg update" when you already have packages installed. You will have to supply what's called the "triplet" - see the documentation - which is basically what you want to build like 32 bit and 64 bit. When there is a new vcpkg you run the bootstrap to build the new version. For the packages vcpkg knows about follow the help. You do need git installed though, vcpkg revolves around that for its operations.

1 points

If you can work out the Visual Studio problems (with the Visual Studio installation tool a complete uninstall then reinstall would be the first thing to try) then the given VCPkg Microsoft's tool just makes life so much more enjoyable.

2 points

What stands out the most is that any method you implement must do some kind of calculate to determine where to have the "moon" coordinates. With very basic math you can get a good-enough answer. If you get into a detailed physics engine though then you will end up doing quite a bit of that calculation that doesn't really need to be that accurate. If you're doing that calculation than that time-to-do takes a chunk off of your total-time-for-everything game loop. You probably don't need the accuracy of a real physics engine and would definitely be using more time to calculate the position which means either a lower framerate (because not as many can be computed within a smaller time), or less objects ("moon") within the same time. If you are overly exact with your calculation of where the "moon" is supposed to be then that might be taking unnecessary time away from other parts of your game.

1 points

Quick and dirty: store a degree around a circle of a radius. Your moon is radius away from the centre point of the circle. Then just use basic sin and cos functions with the degree multiplied by your radius. Put the "moon" there. Done.

If you need to get into rigid body physics to just loop around a circle with a degree then you may not be approaching the problem correctly.

1 points

Every time I've switched (or tried) to Catalyst it has never ended well. I don't recommend it. If you absolutely need Catalyst then I'd look for a distro with a lower tempo like Ubuntu because the rolling nature of Arch and the glacial pace of AMD just don't jive together.

Don't get me wrong, AMD is an awesome open-source company - they provide tons of docs to further xf86-video-ati development - but their proprietary Catalyst is a pain. nVidia on the other hand tend to have a good proprietary driver but they are complete dicks when it comes to providing documentation for the Nouveau project.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.