IMHO the "sweet spot" for a German WWII aircraft cannon would have been something around 200-250g M-shell at 700-750 m/s. Also, even at the cost of worse external ballistics, maybe a short and stubby shell and a straight-walled cartridge would have enabled a shorter cycle and thus faster RoF, and more compact packing of ammo belts. At the usually short ranges WWII air combat happened at, the worse ballistics of a short and stubby shell might not matter that much.
200 to 250 G may not sound like big change but is about a 25% change in energy which requires a roughly 25% change in propellent charge, assuming other things stay the same.
I have gathered up some 20mm shells and few more to show propellent charges.
gun..,,,,,,,,,,,.............propellent charge/G....................... shell weight/G.........................MV/MS.................length of round/mm
Oer F/typr 99-1...............13.5....................................................128........................................605................................140-145
MG/FF.................................13.5....................................................134........................................600.................................145
MG/FFM.............................15.5.....................................................92..........................................700.................................145
MG 151...............................19........................................................92...........................................800................................147
MG 151...............................19......................................................115...........................................710................................147
Ho-5.....................................20.......................................................79.........................................730-750..........................145?
ShVAK..................................18....................................................91-96......................................750-810..........................145
Type 99-2...........................21.4...................................................128...........................................750................................173
Oer FFS...............................28.5....................................................128...........................................830................................181
Hispano..............................32.5....................................................128.......................................850-880...........................184
Ho-1/3.................................37........................................................136.........................................820..................................195
20 x 138............................36.5-44...........................................101-147.................................800-975............................203
23x106 Madsen..............34.5......................................................174........................................720...................................186
23x115 Russian............33-37..................................................175-200...............................690-710.............................200(?)
25mm Hotchkiss AA...160........................................................250........................................900.....................................233
MK 108..............................30..........................................................330.......................................505...................................----
Aden LV............................---..........................................................273........................................604..................................----
Propellent charges for the newer cannon seem to be harder to get.
One French loading for the 30 x 113 Aden (?) gun uses 50 grams to get a 275g shell up to 775ms a second.
Overall length is about the same but this is thick walled projectile and they traded shell length for propellent space and used more modern propellent.
Late war Japanese 30mm guns may have had problems with steel quality as they don't seem to use very high pressures.