mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Fix the -Z wr-no-batch option.
The DebugOpts struct uses the Default trait to set all the values to false initialily. So bools in the DebugOpts struct must be negative verbs to work correctly. This drops the draw call count on HN from ~2000 back to ~5.
This commit is contained in:
parent
96d6b30eff
commit
0235bf2c4d
1 changed files with 3 additions and 3 deletions
|
@ -310,7 +310,7 @@ pub struct DebugOptions {
|
|||
pub webrender_record: bool,
|
||||
|
||||
/// Enable webrender instanced draw call batching.
|
||||
pub webrender_batch: bool,
|
||||
pub webrender_disable_batch: bool,
|
||||
|
||||
/// Use multisample antialiasing in WebRender.
|
||||
pub use_msaa: bool,
|
||||
|
@ -359,7 +359,7 @@ impl DebugOptions {
|
|||
"wr-stats" => self.webrender_stats = true,
|
||||
"wr-debug" => self.webrender_debug = true,
|
||||
"wr-record" => self.webrender_record = true,
|
||||
"wr-no-batch" => self.webrender_batch = false,
|
||||
"wr-no-batch" => self.webrender_disable_batch = true,
|
||||
"msaa" => self.use_msaa = true,
|
||||
"full-backtraces" => self.full_backtraces = true,
|
||||
"precache-shaders" => self.precache_shaders = true,
|
||||
|
@ -827,7 +827,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
is_printing_version: is_printing_version,
|
||||
webrender_debug: debug_options.webrender_debug,
|
||||
webrender_record: debug_options.webrender_record,
|
||||
webrender_batch: debug_options.webrender_batch,
|
||||
webrender_batch: !debug_options.webrender_disable_batch,
|
||||
precache_shaders: debug_options.precache_shaders,
|
||||
signpost: debug_options.signpost,
|
||||
certificate_path: opt_match.opt_str("certificate-path"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue