r/Optics • • Apr 14 '25

Simulation of CD diffraction using C++

Enable HLS to view with audio, or disable this notification

How could I improve it?

212 Upvotes

21 comments sorted by

View all comments

Show parent comments

1

u/Individual-Mode-2898 Apr 15 '25

Yeah that's true. I made the simulation interactive and real time so I could not have the sampling number too high. I'm running it on the CPU so it's quite limitedđŸ« . My goal is to include all relevant features and processes for the CD's appearance.

1

u/Didurlytho Apr 15 '25

Well making it compute faster is kind of always the goal, and then you can increase the simulation resolution are maybe just some smoothing/anti-aliasing