More modern engines have electronically controlled throttle plates, and this is definitely somewhere you could do something clever like you suggest - cutting fuel flow but also maximising airflow when there is zero throttle input.
I assume engine braking is generally considered a beneficial thing by manufacturers, but it could be fun to be able to customise the amount. Or do something like have the braking come on gently at first then harder. Maybe even try and have a linear or flat response curve vs. engine rpm.
Some recentish motorbikes have an option to customise the amount of engine brake, I suppose cars could have something similar, too.
You can do this by letting go of gas pedal slowly. I have "current amount of fuel used" info in my car (liters/100km), it shows pretty clearly, that when going fast and slowly letting go of gas, amount of fuels slowly goes to 0. If I let go of gas fast, the engine is intelligent enough to not close throttle as fast as possible, still probably takes 1 second.
> More modern engines have electronically controlled throttle plates, and this is definitely somewhere you could do something clever like you suggest - cutting fuel flow but also maximising airflow when there is zero throttle input.
They cut fuel flow and close throttle plate almost completely but still allow some small amount of air, in order to actually do engine braking. If you need to coast, you can apply clutch in manual. Don't know that much about automatic, but from what I've driven, they use "lift gas" as a "engine braking" signal, so probably they can't really coast that good.
Funny because the cars build dates are only 2 years apart, 2005 and 2007, and they're both K20 engines but the engines handle so different.
The OEMs try real hard to prevent this because the amounts of emissions byproducts that aren't water or C02 they're allowed to produce are on the order of single digit grams per multiple miles (you can mentally file it as "about the baseline air quality in urban areas" though the rules are hugely more complex than that) so these edge cases matter.
You don't want to do this. Much of the engine braking effect is from pulling the intake air charge past the mostly closed throttle plate. On a car with a wide open throttle plate [even with no fuel], the engine is acting more like a spring than a damper. On the intake stroke, it will pull an intake air charge past the small restriction of the open intake valve(s), then compress it on the compression stroke, then release that compressed energy on the "power" stroke, then exhaust it past the small restriction of the open exhaust valves. Pushing air past the valves will cost energy, but it's not much.
This is why diesel trucks' engine braking works differently. (Diesels don't have a throttle plate.) They can open the exhaust valves to prevent the energy recovery in the "power" stroke to create a higher net braking force. Jake Brake: https://en.wikipedia.org/wiki/Compression_release_engine_bra...
Though the ECU would be doing the AFR management on modern EFI engines as the injectors aren't vacuum operated like Carburetors were. You should be able to cut fuel injection when coasting in a modern engine, can't run lean if there's no fuel at all. Not sure if carbs could do the same.