update changelog

This commit is contained in:
Nikolas
2024-08-29 13:18:50 -07:00
parent d1c7cd3f92
commit 9177c89837
3 changed files with 7 additions and 3 deletions

View File

@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
Changes are grouped by the date they are merged to the main branch of the repository and are ordered from newest to oldest. Dates use the ISO 8601 extended calendar date format, i.e. YYYY-MM-DD.
## 2024-08-29
- Update blender harness to support different scenes.
## 2024-08-22
- Fixed some bugs with handbrake harness.

View File

@@ -70,6 +70,7 @@ def main():
if __name__ == "__main__":
try:
setup_logging()
main()
except Exception as ex:
logging.error("something went wrong running the benchmark!")

View File

@@ -59,7 +59,6 @@ def download_scene(scene: BlenderScene) -> None:
return
try:
logging.info("copying %s from network drive...", scene.file_name)
copy_scene_from_network_drive(scene.file_name, destination)
if Path(destination).exists():
return
@@ -102,7 +101,7 @@ def run_blender_render(executable_path: Path, log_directory: Path, device: str,
"""Execute the blender render of barbershop, returns the duration as string"""
blend_log = log_directory.joinpath("blender.log")
blend_path = SCRIPT_DIR.joinpath(benchmark.file_name)
cmd_line = f"\"{str(executable_path)}\" -b -E CYCLES -y \"{str(blend_path)}\" -f 1 -- --cycles-device {device} --cycles-print-stats"
cmd_line = f'"{str(executable_path)}" -b -E CYCLES -y "{str(blend_path)}" -f 1 -- --cycles-device {device} --cycles-print-stats'
with open(blend_log,'w' , encoding="utf-8") as f_obj:
subprocess.run(cmd_line, stdout=f_obj, text=True, check=True)
@@ -137,7 +136,7 @@ def find_blender():
executable_path = blender_dir.joinpath(f"Blender {latest_ver}", "blender.exe")
if not executable_path.exists():
raise Exception("Blender not detected")
info = GetFileVersionInfo(executable_path, "\\")
info = GetFileVersionInfo(str(executable_path), "\\")
version_ms = info['FileVersionMS']
version_ls = info['FileVersionLS']
version = f"{HIWORD (version_ms)}.{LOWORD (version_ms)}.{HIWORD (version_ls)}.{LOWORD (version_ls)}"