This project benchmarks the performance of drawing images on a canvas using different rendering contexts (2d and webgl2).
- Switch between
2dandwebgl2rendering contexts. - Measure and log performance metrics.
- Optimize rendering using
WebGLContextAttributes.
-
Clone the repository:
git clone <repository-url> cd rendering-context-benchmark
-
Install dependencies:
npm install
To start the development server:
npm run devTo build the project:
npm run buildTo preview the built project:
npm run previewThis project is licensed under the Apache-2.0 License.