Optimize fixed-function Vulkan shaders for Adreno 512 and recover Android surfaces
This commit is contained in:
@@ -22,7 +22,7 @@ def shell(command):
|
||||
return adb('shell', command).decode(errors='replace').strip()
|
||||
|
||||
def files():
|
||||
return set(shell('ls ' + PERF + 'perf-*.csv 2>/dev/null').splitlines())
|
||||
return set(shell('ls ' + PERF + 'perf-*.csv 2>/dev/null || true').splitlines())
|
||||
|
||||
def parse(text):
|
||||
return list(csv.DictReader(line for line in text.splitlines() if line and not line.startswith('#')))
|
||||
@@ -32,13 +32,17 @@ def main():
|
||||
parser.add_argument('output', type=Path)
|
||||
parser.add_argument('--sections', default='baseline,terrain,characters,effects,touch,scene,baseline_repeat')
|
||||
parser.add_argument('--windows', type=int, default=6)
|
||||
parser.add_argument('--render-scale', type=float, default=0.6)
|
||||
parser.add_argument('--msaa', type=int, choices=[1,2,4,8], default=1)
|
||||
parser.add_argument('--fps-cap', type=int, default=30)
|
||||
args = parser.parse_args()
|
||||
args.output.mkdir(parents=True, exist_ok=True)
|
||||
results = []
|
||||
try:
|
||||
for section in args.sections.split(','):
|
||||
before = files()
|
||||
launch = '--interactive --fake-mobs 24 --perf-log --show-fps --fps-cap 30 --msaa 1 --render-scale 0.6'
|
||||
launch = ('--interactive --fake-mobs 24 --perf-log --show-fps --fps-cap %d --msaa %d --render-scale %g'
|
||||
% (args.fps_cap, args.msaa, args.render_scale))
|
||||
if not section.startswith('baseline'):
|
||||
launch += ' --diagnostic-skip-render ' + section
|
||||
shell('am force-stop ' + PKG)
|
||||
|
||||
Reference in New Issue
Block a user