LetswaveaBook Posted June 6, 2021 Report Share Posted June 6, 2021 A few weeks ago when discussing auras, Stan´ meantioned https://github.com/0ad/0ad/blob/e68daa4f75488bdbdd9b0f58979430ce5e9898fc/source/simulation2/components/CCmpRangeManager.cpp I noticed that file contained a lot of divisions, mainly of the form Z / LOS_TILE_SIZE Now my suggestion is to introduce a dummy variable INV_LOS_TILE_SIZE=1/ LOS_TILE_SIZE. That way, we can do a multiplication instead of a division and the lines would read Z*INV_LOS_TILE_SIZE, which is cheaper if you need to do a lot of divisions. Wraitii suggested that I would make a differential to test if it makes the game faster. I made an account on phabricator to try to make a differential, but I did not know how to make a differential. Can anyone explain which steps would be needed to be done to publish such a simple differential? I do unsterstand some C# code, but I don´t know what steps are next. Do I have to download/upload something or can it be done in the browser? Quote Link to comment Share on other sites More sharing options...
maroder Posted June 6, 2021 Report Share Posted June 6, 2021 (edited) Those pages are very helpful: https://trac.wildfiregames.com/wiki/SubmittingPatches https://trac.wildfiregames.com/wiki/BuildInstructions https://trac.wildfiregames.com/wiki/BuildInstructionsGettingTheCode So basically: Download TortoiseSVN. Clone the official repo. Change some code. Test if it works. Save the change as a patch. Upload it manually to phabricator. You can also use command line to do that but it's more complicated to setup. And I'm sure @Stan` or other people at the irc channel will help you get ready to make a patch (although a good time may be after the feature freeze and important bug fixing that is done after that ) Edited June 6, 2021 by maroder typo Quote Link to comment Share on other sites More sharing options...
Ceres Posted June 26, 2021 Report Share Posted June 26, 2021 Isn't Arcanist the tool needed in addition? On 05/03/2021 at 4:22 PM, Stan` said: I'm not sure what shaders you are refering to but maybe you could help @vladislavbelov work on the graphics engine. Yes we have started developping A25: https://trac.wildfiregames.com/wiki/Alpha25 You can use either the git or the svn version note that the git version is only updated once per day. We use Phabricator to handle contributions, so you'll need to install arcanist, or generate diffs by hand https://trac.wildfiregames.com/wiki/Phabricator https://trac.wildfiregames.com/wiki/SubmittingPatches Are there good hints how to install Arcanist under Windows 10 that you could recommend? Thank you! Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 26, 2021 Report Share Posted June 26, 2021 Well it's in the link https://trac.wildfiregames.com/wiki/Phabricator Other than that arm yourself with patience. Else you can just generate diff using svn diff and git diff and upload them manually. 2 Quote Link to comment Share on other sites More sharing options...
LetswaveaBook Posted October 1, 2021 Author Report Share Posted October 1, 2021 I was still looking on how to make a diff and I was on the page: https://trac.wildfiregames.com/wiki/BuildInstructionsGettingTheCode I have used some SVN for testing/playing a development version of A25. What would be recommended for a new user on linux mint, would it be Git or SVN? Quote Link to comment Share on other sites More sharing options...
Freagarach Posted October 2, 2021 Report Share Posted October 2, 2021 It is mostly "whatever floats your boat". So if you have worked with git before, go for it. Else I would say use SVN just for the sake of our code being developed there. ^^ That said, both "svn diff" and "git diff" will be able to produce patches. 1 Quote Link to comment Share on other sites More sharing options...
LetswaveaBook Posted October 15, 2021 Author Report Share Posted October 15, 2021 If I did not miss a step, this is what I did: Downloaded the code. Found the kushite architecture tech and changed its cost. inserted in the command line $ cd ./0ad $ svn diff --diff-cmd diff -x "-U 99999" > changes.patch That created a document changes.patch in the 0ad folder, which I uploaded to https://code.wildfiregames.com/differential/diff/create/ and now we have https://code.wildfiregames.com/D4310 2 Quote Link to comment Share on other sites More sharing options...
smiley Posted October 15, 2021 Report Share Posted October 15, 2021 On 06/06/2021 at 9:53 PM, LetswaveaBook said: Z / LOS_TILE_SIZE The compiler is smart enough to change it to Z >> 2; Regardless div and mul differs by around 6 cycles or something. Its not really an issue considering a cache miss has a higher penalty. Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted October 15, 2021 Report Share Posted October 15, 2021 On 06/06/2021 at 5:53 PM, LetswaveaBook said: I did not know how to make a differential if y = f(x) then your differential of f with respect to x is: Alt: open a terminal in your 0ad source code folder and type 'git diff' or 'svn diff' then it will show you the differential code. Then ctrl+shift+v to copy it and then paste it into the 'raw diff' textbox of the differential creator. 2 Quote Link to comment Share on other sites More sharing options...
LetswaveaBook Posted October 16, 2021 Author Report Share Posted October 16, 2021 18 hours ago, Yekaterina said: if y = f(x) then your differential of f with respect to x is: That does not work. First of all, that formula does not make sense if the limit does not exist. Secondly, you don't make the differential by that way, it is calculated that way. The differential of a function exists or does not, regardless of whether you can calculate it. So in that sense you don't make the differential. 1 Quote Link to comment Share on other sites More sharing options...
alre Posted October 16, 2021 Report Share Posted October 16, 2021 wait, isn't the derivative of a function defined using limits? If the limit doesn't exist the function is not derivable, is it? Quote Link to comment Share on other sites More sharing options...
alre Posted October 16, 2021 Report Share Posted October 16, 2021 also, everyone knows that to make a differential, you just need a number of gears. 1 Quote Link to comment Share on other sites More sharing options...
sarcoma Posted October 16, 2021 Report Share Posted October 16, 2021 Differential and derivatives are not the same. The (exact) differential of f(x1,x2,...) is df = f_x1 dx1 + f_x2 dx2 + ... where f_xi is the partial derivative of f with respect to x_i The first law of thermodynamics is expressed in exact and inexact differentials dU = delta W + delta Q Quote Link to comment Share on other sites More sharing options...
Loki1950 Posted October 16, 2021 Report Share Posted October 16, 2021 No need for the limits unless you are doing a full numerical integration and even then your accuracy/resolution is dependant on the method you use ie: which order Enjoy the Choice Quote Link to comment Share on other sites More sharing options...
nani Posted October 17, 2021 Report Share Posted October 17, 2021 1 hour ago, m7600 said: @nani Prove that the concept of a limit is necessary to define the concept of a differential equation in general. Calm down, I was just teasing Quote Link to comment Share on other sites More sharing options...
BreakfastBurrito_007 Posted October 17, 2021 Report Share Posted October 17, 2021 hehe XD maf OP I am about to do a bunch of these here differential equations, I can't wait. Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted October 17, 2021 Report Share Posted October 17, 2021 O chill chill chill it was just a joke, pretend I didn't say it. Sometimes git diff doesn't show you any deleted files, so maybe we need to add a few options after it like -99999 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.