This forum topic claims the iris xe is not strong enough per the minimum requirements of the game.
Also, upon reviewing the system requirements for Marvel's Spider-Man 2, I found that the minimum GPU specification is a GTX 1650. Unfortunately, the Intel Iris Xe graphics is not comparable to the GTX 1650 in terms of performance. Additionally, both the minimum and recommended GPU specifications for the game are discrete GPUs, which may lead to compatibility issues with the integrated graphics you are using.





