I've been playing about with power calcs for a while, but don't yet have an app that can do the calc in real time.
Some of my results are on the AC forum - e.g.
http://www.assettocorsa.net/forum/i...-restrictor-research.48632/page-2#post-949793 and other posts in the same thread.
My current power calc uses: mass, acceleration, slip ratio, and a simple air-resistance estimate (tuned to make the data in high gears match the other gears reasonably well). It works pretty well on a straight-line acceleration test (which is how I got the data shown in that link). In principle, I could calculate all of that stuff on the fly but it might be a bit messy. I might give it a go for fun!
I don't have rolling resistance in there yet, but should probably add it.
It would be fairly easy to handle the effect of going up or down hills, but cornering would be pretty tricky so I'd probably have to stick to data gathered while the car is more or less moving in a straight line.
NB: as other people have pointed out in various discussions of BoP in general, even if you know precisely how much power you will lose, it's non-trivial to work out how to balance any given pair or cars.
Btw, be aware that the restrictor in AC (like in real life I guess) affects the top end much more than the bottom end; this moves the power peak and shift points (more in some cars than others).
EDIT: I have been looking at the power curve for the M235i. This is THE car that Aris said needed really early upshifts, during at least one of his Youtube videos. I didn't believe him at the time, because the power curve in the ui_car.json file (which AC itself displays within the GUI, and which Sidekick uses to work out the shiftpoints) says he's wrong - the power peak and curve after the peak combine to mean the shift points should be really close to the red line.
HOWEVER, that file appears to be pretty badly wrong. I've attached an image which shows the acceleration in each gear, starting from 1st. (Pink is 7th gear, which is pretty pointless in this car on most tracks (!!), and 8th is entirely pointless for racing - it's the tiny grey blip at 254 kph.) Apologies for the lack of a legend on the graph - it was created for my personal consumption and I can't rebuild it right now cos my main machine is poorly.
The important bit is the crossover points - 4th and 5th cross at about 153 kph for example. This is when Sidekick
should be telling you to change up, but it doesn't, because the power curve it's using is wrong. (PS: I decided to also upload the power and torque curves with and without 100% restrictor, and the ratio of the curves with and w/o restrictor...
)