100KDraw_10KDrawable_MultiView_ExampleComponent.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Performance/HighInstanceExampleComponent.h>
  10. namespace AtomSampleViewer
  11. {
  12. //! This test loads a 22x22x22 (~10K) lattice of cubes with a white material, shadowed lights are added to the scene until 100K draws are required.
  13. //! This test benchmarks how well atom scales cpu time with the number of draws.
  14. class _100KDraw10KDrawableExampleComponent
  15. : public HighInstanceTestComponent
  16. {
  17. using Base = HighInstanceTestComponent;
  18. public:
  19. AZ_COMPONENT(_100KDraw10KDrawableExampleComponent, "{85C4BEE0-9FBC-4E9A-8425-12555703CC61}", HighInstanceTestComponent);
  20. static void Reflect(AZ::ReflectContext* context);
  21. _100KDraw10KDrawableExampleComponent();
  22. private:
  23. AZ_DISABLE_COPY_MOVE(_100KDraw10KDrawableExampleComponent);
  24. static void InitDefaultValues(HighInstanceTestParameters& defaultParameters);
  25. };
  26. } // namespace AtomSampleViewer