# uniform boundedness + $f_n, f$ continuous + $f_n\to f$ on compact set $\implies$ uniform convergence?

Suppose

1. $X$ is compact
2. $f_n:X\to\mathbb{R}$ is continuous for all $n\in\mathbb{N}$
3. $f_n\to f$ pointwise, and $f$ is also continuous
4. the sequence $\left\{f_n\right\}$ is uniformly bounded on $X$

Does it follow that the convergence is uniform?

(Note the first three conditions are the same as the hypotheses of Dini's theorem, minus monotonicity.)

I've tried the standard counterexamples showing the conjunction (1)+(2)+(3) is not sufficient for uniform convergence, but those examples aren't uniformly bounded.

Let $f_n(x)=nxe^{-nx}$ on $[0,1]$. Then $f_n\to 0$ pointwise. Note that $f_n'(x)=ne^{-nx}-n^2x^2e^{-nx}$ which is $0$ at $x=\frac1n$. Note that $f_n'$ is positive below and negative above $\frac1n$, so $f_n$ is maximized at $\frac1n$. Note that $f_n(\frac{1}{n})=\frac{1}{e}$.