Which is better in these situations?

Iphone 3gs 32 GB or iphone 4 16 GB.

I know I phone 4 processor and ram speed is better but, i think the high screen resolution will reduce the speed

"the high screen resolution will reduce the speed". Nonsense.

Go with later version, you can always offload pics and videos to the computer to free up space.