Skip to content

Minimizing the PasVylkan Units Used #57

Description

@JohnHutch123

I am trying to use a minimum set of PasVulkan at this time. Primarily focussing on the PasVulkan.Framework (and critical supporting units). If I use the library as is and I build my executable, the number of PasVulkan Units compiled is extensive and the executable is about 23Mb.

When I track down why I find an Implementation Uses PasVulkan.Application in the PasVulkan.NVIDIA.AfterMath unit. The unit only references the Application unit for the pvApplication.Title.

If I modify the PasVulkan.NVIDIA.AfterMath unit to have a var ApplicationName:String='' which is set by the pvApplication when int the pvApplication.SetTitle and the PasVulkan.NVIDIA.AfterMath only uses this variable I can remove a lot of pasVulkan units from the compile.

The result is a small set of PasVulkan units compiled and my executable drops to about 11Mb.

Would you consider this change to the code please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions